pub enum AnimationSpeed {
Slow,
Medium,
Fast,
}Expand description
Animation speed setting.
Variants§
Implementations§
Source§impl AnimationSpeed
impl AnimationSpeed
Sourcepub fn display_name(self) -> &'static str
pub fn display_name(self) -> &'static str
Get display name for the speed.
Sourcepub fn shift_cycle_ms(self) -> u64
pub fn shift_cycle_ms(self) -> u64
Get the cycle duration in milliseconds for shifting animation.
Sourcepub fn pulse_period_ms(self) -> u64
pub fn pulse_period_ms(self) -> u64
Get the pulse period in milliseconds.
Sourcepub fn wave_period_ms(self) -> u64
pub fn wave_period_ms(self) -> u64
Get the wave period in milliseconds.
Sourcepub fn flash_decay_ms(self) -> u64
pub fn flash_decay_ms(self) -> u64
Get the flash decay duration in milliseconds for reactive animation.
Sourcepub fn star_twinkle_period_ms(self) -> u64
pub fn star_twinkle_period_ms(self) -> u64
Get the star twinkle period in milliseconds.
Sourcepub fn matrix_fall_speed(self) -> f32
pub fn matrix_fall_speed(self) -> f32
Get the matrix rain fall speed multiplier.
Sourcepub fn gradient_scroll_period_ms(self) -> u64
pub fn gradient_scroll_period_ms(self) -> u64
Get the gradient scroll period in milliseconds.
Trait Implementations§
Source§impl Clone for AnimationSpeed
impl Clone for AnimationSpeed
Source§fn clone(&self) -> AnimationSpeed
fn clone(&self) -> AnimationSpeed
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnimationSpeed
impl Debug for AnimationSpeed
Source§impl Default for AnimationSpeed
impl Default for AnimationSpeed
Source§fn default() -> AnimationSpeed
fn default() -> AnimationSpeed
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnimationSpeed
impl<'de> Deserialize<'de> for AnimationSpeed
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AnimationSpeed
impl PartialEq for AnimationSpeed
Source§impl Serialize for AnimationSpeed
impl Serialize for AnimationSpeed
impl Copy for AnimationSpeed
impl Eq for AnimationSpeed
impl StructuralPartialEq for AnimationSpeed
Auto Trait Implementations§
impl Freeze for AnimationSpeed
impl RefUnwindSafe for AnimationSpeed
impl Send for AnimationSpeed
impl Sync for AnimationSpeed
impl Unpin for AnimationSpeed
impl UnwindSafe for AnimationSpeed
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