Cue
struct · ferroui-base · v0.5.0
struct Cue
Determines the time index for a key frame: a fraction of the animation's
duration in [0, 1].
Members
new
fn new(value: f64) -> Self
Creates a cue. Panics when the value is outside [0, 1].
try_new
fn try_new(value: f64) -> Option<Self>
Creates a cue; None when the value is outside [0, 1].
cue_value
fn cue_value(self: &Self) -> f64
The normalized percent value of the cue.
parse
fn parse(value: &str) -> Result<Cue, FormatError>
Parses a cue from a percentage, with or without a trailing %.
equals_f64
fn equals_f64(self: &Self, other: f64) -> bool
Checks for value equality with a number.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEqFromStrMarkupTypedValueTypeRegistration
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.