pub struct Timer<C, F>(pub C, pub F);Available on crate features
fmt and std only.Expand description
A combinator that implements FormatTime as F(C::now()).
Composes a Clock and a TimestampFormatter to implement FormatTime.
Tuple Fields§
§0: C§1: FTrait Implementations§
Source§impl<C, F> FormatTime for Timer<C, F>
impl<C, F> FormatTime for Timer<C, F>
impl<C: Copy, F: Copy> Copy for Timer<C, F>
Auto Trait Implementations§
impl<C, F> Freeze for Timer<C, F>
impl<C, F> RefUnwindSafe for Timer<C, F>where
C: RefUnwindSafe,
F: RefUnwindSafe,
impl<C, F> Send for Timer<C, F>
impl<C, F> Sync for Timer<C, F>
impl<C, F> Unpin for Timer<C, F>
impl<C, F> UnwindSafe for Timer<C, F>where
C: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more