pub struct IterationCount { /* private fields */ }Expand description
Determines the number of iterations of an animation. Also defines its repeat type.
Implementations§
Source§impl IterationCount
impl IterationCount
Sourcepub const INFINITE: IterationCount
pub const INFINITE: IterationCount
An instance that makes the animation loop forever.
Sourcepub const fn with_type(value: u64, type_: IterationType) -> Self
pub const fn with_type(value: u64, type_: IterationType) -> Self
Creates a count with an explicit repeat type.
Sourcepub const fn repeat_type(&self) -> IterationType
pub const fn repeat_type(&self) -> IterationType
The repeat type.
Sourcepub const fn is_infinite(&self) -> bool
pub const fn is_infinite(&self) -> bool
Whether the animation loops forever.
Sourcepub fn parse(s: &str) -> Result<IterationCount, FormatError>
pub fn parse(s: &str) -> Result<IterationCount, FormatError>
Parses "Infinite" (case-insensitive) or a non-negative integer.
Trait Implementations§
Source§impl Clone for IterationCount
impl Clone for IterationCount
impl Copy for IterationCount
Source§impl Debug for IterationCount
impl Debug for IterationCount
Source§impl Default for IterationCount
impl Default for IterationCount
Source§impl Display for IterationCount
impl Display for IterationCount
impl Eq for IterationCount
Source§impl FromStr for IterationCount
impl FromStr for IterationCount
Source§impl Hash for IterationCount
impl Hash for IterationCount
Source§impl MarkupTyped for IterationCount
impl MarkupTyped for IterationCount
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl Freeze for IterationCount
impl RefUnwindSafe for IterationCount
impl Send for IterationCount
impl Sync for IterationCount
impl Unpin for IterationCount
impl UnsafeUnpin for IterationCount
impl UnwindSafe for IterationCount
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more