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.
Sourcepub fn snow_fall_speed(self) -> f32
pub fn snow_fall_speed(self) -> f32
Get the snowfall speed multiplier.
Sourcepub fn frost_growth_period_ms(self) -> u64
pub fn frost_growth_period_ms(self) -> u64
Get the frost growth period in milliseconds.
Sourcepub fn aurora_wave_period_ms(self) -> u64
pub fn aurora_wave_period_ms(self) -> u64
Get the aurora wave period in milliseconds.
Sourcepub fn rain_fall_speed(self) -> f32
pub fn rain_fall_speed(self) -> f32
Get the rain fall speed multiplier.
Sourcepub fn lightning_interval_ms(self) -> (u64, u64)
pub fn lightning_interval_ms(self) -> (u64, u64)
Get the lightning flash interval range in milliseconds (min, max).
Sourcepub fn wind_streak_speed(self) -> f32
pub fn wind_streak_speed(self) -> f32
Get the wind streak speed multiplier.
Sourcepub fn cloud_drift_period_ms(self) -> u64
pub fn cloud_drift_period_ms(self) -> u64
Get the cloud drift period in milliseconds.
Sourcepub fn sun_shimmer_period_ms(self) -> u64
pub fn sun_shimmer_period_ms(self) -> u64
Get the sun ray shimmer period in milliseconds.
Sourcepub fn fog_pulse_period_ms(self) -> u64
pub fn fog_pulse_period_ms(self) -> u64
Get the fog pulse period in milliseconds.
Trait Implementations§
Source§impl Clone for AnimationSpeed
impl Clone for AnimationSpeed
Source§fn clone(&self) -> AnimationSpeed
fn clone(&self) -> AnimationSpeed
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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>,
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
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
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>
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>
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