pub struct ManualClock { /* private fields */ }Expand description
The tests’ clock: moves only when told, running each timer that comes due on the way, in order.
Implementations§
Source§impl ManualClock
impl ManualClock
pub fn new() -> Self
Sourcepub fn with_frames() -> Self
pub fn with_frames() -> Self
STUDIO-16: a clock with animation frames — Clock::frame waits
for Self::next_frame.
Sourcepub fn next_frame(&self)
pub fn next_frame(&self)
STUDIO-16: the next animation frame: what was asked for it runs.
Trait Implementations§
Source§impl Clock for ManualClock
impl Clock for ManualClock
Source§impl Clone for ManualClock
impl Clone for ManualClock
Source§impl Debug for ManualClock
impl Debug for ManualClock
Auto Trait Implementations§
impl !RefUnwindSafe for ManualClock
impl !Send for ManualClock
impl !Sync for ManualClock
impl !UnwindSafe for ManualClock
impl Forget for ManualClock
impl Freeze for ManualClock
impl Move for ManualClock
impl Unpin for ManualClock
impl UnsafeUnpin for ManualClock
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Variant for T
impl<T> Variant for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.Source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant trait object to Box<dyn Any>.