pub struct ResolvedCharAnimation {Show 20 fields
pub preset: CharAnimPreset,
pub granularity: TextAnimGranularity,
pub stagger: f32,
pub duration: f32,
pub easing: EasingType,
pub delay: f32,
pub overshoot: f32,
pub blur: f32,
pub direction: TextAnimDirection,
pub distance: f32,
pub scale_from: Option<f32>,
pub jitter: f32,
pub seed: u32,
pub ink_from: Option<String>,
pub rotate_from: Option<f32>,
pub rotate_origin: RotateOrigin,
pub scale_jitter: f32,
pub baseline_jitter: f32,
pub reflow: bool,
pub reflow_easing: EasingType,
}Fields§
§preset: CharAnimPreset§granularity: TextAnimGranularity§stagger: f32§duration: f32§easing: EasingType§delay: f32§overshoot: f32§blur: f32§direction: TextAnimDirection§distance: f32§scale_from: Option<f32>§jitter: f32§seed: u32§ink_from: Option<String>§rotate_from: Option<f32>§rotate_origin: RotateOrigin§scale_jitter: f32§baseline_jitter: f32§reflow: bool§reflow_easing: EasingTypeImplementations§
Source§impl ResolvedCharAnimation
impl ResolvedCharAnimation
pub fn unit_start(&self, idx: usize) -> f64
pub fn unit_progress(&self, idx: usize, time: f64) -> f32
pub fn reflow_progress(&self, idx: usize, time: f64) -> f32
pub fn scale_jitter_delta(&self, idx: usize) -> f32
pub fn baseline_jitter_delta(&self, idx: usize) -> f32
Trait Implementations§
Source§impl Clone for ResolvedCharAnimation
impl Clone for ResolvedCharAnimation
Auto Trait Implementations§
impl Freeze for ResolvedCharAnimation
impl RefUnwindSafe for ResolvedCharAnimation
impl Send for ResolvedCharAnimation
impl Sync for ResolvedCharAnimation
impl Unpin for ResolvedCharAnimation
impl UnsafeUnpin for ResolvedCharAnimation
impl UnwindSafe for ResolvedCharAnimation
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<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