pub enum FlipStyle {
Sequential,
Mechanical {
frames: u8,
},
Combined {
frames: u8,
},
}Expand description
Animation behavior for a cell flip.
Variants§
Sequential
Cycles through each intermediate character in CharSet order. Total duration = distance * flip_speed_ms.
Mechanical
Fixed split-block animation regardless of character distance. Total duration = flip_speed_ms.
Combined
Mechanical split-block phase, then sequential character roll. Total duration = distance * flip_speed_ms (same as Sequential, but the first step is replaced by a mechanical animation).
Trait Implementations§
impl Copy for FlipStyle
impl Eq for FlipStyle
impl StructuralPartialEq for FlipStyle
Auto Trait Implementations§
impl Freeze for FlipStyle
impl RefUnwindSafe for FlipStyle
impl Send for FlipStyle
impl Sync for FlipStyle
impl Unpin for FlipStyle
impl UnsafeUnpin for FlipStyle
impl UnwindSafe for FlipStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more