Easing
enum · ferroui-designer-animation · v0.5.0
enum Easing
Cubic Bezier easings invert the X polynomial; evaluating Y at progress directly is incorrect. Named curves are FerroUI's animation-wide easing names. Per-keyframe easing must be Linear or CubicBezier to serialize as a native KeySpline without changing semantics.
Members
Linear
Linear
CubicBezier
CubicBezier { x1: f64, y1: f64, x2: f64, y2: f64 }
Spring
Spring { mass: f64, stiffness: f64, damping: f64, initial_velocity: f64 }
Named
Named(String)
validate
fn validate(self: &Self) -> Result<()>
sample
fn sample(self: &Self, progress: f64) -> Result<f64>
parse
fn parse(source: &str) -> Result<Self>
to_xaml
fn to_xaml(self: &Self) -> String
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedDeserializeOwnedCloneDebugDefaultStructuralPartialEqPartialEqSerializeDeserialize<'de>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.