pub struct SteppingClock { /* private fields */ }Expand description
Advances a fixed delta per now() call: the first call returns start,
the next start + step, and so on. For tests that assert ordering.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SteppingClock
impl RefUnwindSafe for SteppingClock
impl Send for SteppingClock
impl Sync for SteppingClock
impl Unpin for SteppingClock
impl UnsafeUnpin for SteppingClock
impl UnwindSafe for SteppingClock
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