FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IterationCount

    struct · ferroui-base · v0.5.0

    struct IterationCount
    

    Determines the number of iterations of an animation. Also defines its repeat type.

    View source

    Members

    INFINITE

    const INFINITE: IterationCount
    

    An instance that makes the animation loop forever.

    Source

    new

    const fn new(value: u64) -> Self
    

    Creates a count of value iterations.

    Source

    with_type

    const fn with_type(value: u64, type_: IterationType) -> Self
    

    Creates a count with an explicit repeat type.

    Source

    repeat_type

    const fn repeat_type(self: &Self) -> IterationType
    

    The repeat type.

    Source

    is_infinite

    const fn is_infinite(self: &Self) -> bool
    

    Whether the animation loops forever.

    Source

    value

    const fn value(self: &Self) -> u64
    

    The number of iterations.

    Source

    parse

    fn parse(s: &str) -> Result<IterationCount, FormatError>
    

    Parses "Infinite" (case-insensitive) or a non-negative integer.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.