pub enum PlaybackDirection {
Forward,
Backward,
}Expand description
Which way the playhead walks the animation.
Deliberately a type of this crate rather than a re-export of the runtime’s:
the runtime discriminates Forward = 1 / Backward = -1 (it multiplies by
them), while every other face of every Player — the C API, the wasm build,
and so the sibling Players — uses 0 / 1. Re-exporting would leak -1 into
the js and ffi faces and silently disagree with all of them, so the wire
value is pinned here and converted at the runtime boundary.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PlaybackDirection
impl Clone for PlaybackDirection
impl Copy for PlaybackDirection
Source§impl Debug for PlaybackDirection
impl Debug for PlaybackDirection
impl Eq for PlaybackDirection
Source§impl From<PlaybackDirection> for PlaybackDirection
impl From<PlaybackDirection> for PlaybackDirection
Source§fn from(value: PlaybackDirection) -> Self
fn from(value: PlaybackDirection) -> Self
Converts to this type from the input type.
Source§impl From<PlaybackDirection> for PlaybackDirection
impl From<PlaybackDirection> for PlaybackDirection
Source§impl PartialEq for PlaybackDirection
impl PartialEq for PlaybackDirection
impl StructuralPartialEq for PlaybackDirection
Auto Trait Implementations§
impl Freeze for PlaybackDirection
impl RefUnwindSafe for PlaybackDirection
impl Send for PlaybackDirection
impl Sync for PlaybackDirection
impl Unpin for PlaybackDirection
impl UnsafeUnpin for PlaybackDirection
impl UnwindSafe for PlaybackDirection
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.