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,
Object Safety§
This trait is not object safe.