pub trait TimeLike: Timelike {
// Provided methods
fn extract_epoch<T>(&self) -> T
where T: DecimalLike { ... }
fn extract_second<T>(&self) -> T
where T: DecimalLike { ... }
fn extract_millisecond<T>(&self) -> T
where T: DecimalLike { ... }
fn extract_microsecond<T>(&self) -> T
where T: DecimalLike { ... }
}
Expand description
Common set of methods for time component.
Provided Methods§
fn extract_epoch<T>(&self) -> Twhere
T: DecimalLike,
fn extract_second<T>(&self) -> Twhere
T: DecimalLike,
fn extract_millisecond<T>(&self) -> Twhere
T: DecimalLike,
fn extract_microsecond<T>(&self) -> Twhere
T: DecimalLike,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.