IterationCount
struct · ferroui-base · v0.5.0
struct IterationCount
Determines the number of iterations of an animation. Also defines its repeat type.
Members
INFINITE
const INFINITE: IterationCount
An instance that makes the animation loop forever.
new
const fn new(value: u64) -> Self
Creates a count of value iterations.
with_type
const fn with_type(value: u64, type_: IterationType) -> Self
Creates a count with an explicit repeat type.
repeat_type
const fn repeat_type(self: &Self) -> IterationType
The repeat type.
is_infinite
const fn is_infinite(self: &Self) -> bool
Whether the animation loops forever.
value
const fn value(self: &Self) -> u64
The number of iterations.
parse
fn parse(s: &str) -> Result<IterationCount, FormatError>
Parses "Infinite" (case-insensitive) or a non-negative integer.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringErasedDestructorIntoEitherCloneCopyDebugDefaultPartialEqEqHashDisplayFromStrMarkupTypedValueTypeRegistration
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.