Enum TrackSync
pub enum TrackSync {
Free,
Start,
}Expand description
Re-exported from the runtime: where the animations laid on a track start.
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.