pub enum TrackSync {
Free,
Start,
}Expand description
How the animation laid on a track keeps time with track 0. Sync means the
normalised phase: how far through its section an animation stands, from
0.0 at the section start towards 1.0 at its end, so animations of
different lengths line up by proportion rather than by frame.
Variants§
Free
The animation starts from the head of its section and keeps its own time. The default; right for one-off motions such as a blink.
Start
The animation starts at the phase track 0’s main animation stands at when it is laid on, then runs on the shared clock. Aligned once, not held: lengths or speeds that differ drift apart again.
Trait Implementations§
impl Copy for TrackSync
impl Eq for TrackSync
impl StructuralPartialEq for TrackSync
Auto Trait Implementations§
impl Freeze for TrackSync
impl RefUnwindSafe for TrackSync
impl Send for TrackSync
impl Sync for TrackSync
impl Unpin for TrackSync
impl UnsafeUnpin for TrackSync
impl UnwindSafe for TrackSync
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