Trait mz_repr::adt::timestamp::TimeLike

source ·
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§

source

fn extract_epoch<T>(&self) -> T
where T: DecimalLike,

source

fn extract_second<T>(&self) -> T
where T: DecimalLike,

source

fn extract_millisecond<T>(&self) -> T
where T: DecimalLike,

source

fn extract_microsecond<T>(&self) -> T
where T: DecimalLike,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> TimeLike for T
where T: Timelike,