TimeGetter

Trait TimeGetter 

Source
pub trait TimeGetter<E: Copy + Debug>: Updatable<E> {
    // Required method
    fn get(&self) -> TimeOutput<E>;
}
Expand description

An object for getting the absolute time.

Required Methods§

Source

fn get(&self) -> TimeOutput<E>

Get the time.

Implementors§

Source§

impl<E: Copy + Debug> TimeGetter<E> for Time

Source§

impl<T: Clone, G: Getter<T, E> + ?Sized, E: Copy + Debug> TimeGetter<E> for TimeGetterFromGetter<T, G, E>