FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    StateBehavior

    struct · ferroui-livecharts · v0.5.0

    struct StateBehavior
    

    Inline state behavior. Omitted actions are no-ops.

    View source

    Members

    on_applied

    on_applied: Option<StateCallback>
    

    Source

    on_removed

    on_removed: Option<StateCallback>
    

    Source

    new

    fn new(on_applied: Option<StateCallback>, on_removed: Option<StateCallback>) -> Self
    

    Source

    applied

    fn applied(self: Self, callback: impl Fn(&mut Animatable, f64) -> () + 'static) -> Self
    

    Source

    removed

    fn removed(self: Self, callback: impl Fn(&mut Animatable, f64) -> () + 'static) -> Self
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Default
    • Debug
    • IStateBehavior

    Availability

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