pub struct Scheduler { /* private fields */ }Expand description
Compact storage containing active animations only.
Implementations§
Source§impl Scheduler
impl Scheduler
pub fn start(&mut self) -> AnimationId
pub fn stop(&mut self, id: AnimationId) -> bool
pub fn contains(&self, id: AnimationId) -> bool
pub fn active(&self) -> &[AnimationId]
pub fn needs_frame(&self) -> bool
pub fn frame(&mut self, now: Time) -> Option<Frame>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scheduler
impl RefUnwindSafe for Scheduler
impl Send for Scheduler
impl Sync for Scheduler
impl Unpin for Scheduler
impl UnsafeUnpin for Scheduler
impl UnwindSafe for Scheduler
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