FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    NotifyCollectionChangedEventArgs

    struct · ferroui-system · v0.5.0

    struct NotifyCollectionChangedEventArgs<'a, T>
    

    Describes a change to a collection.

    Indexes are -1 when not applicable to the action, as in the notification model this mirrors.

    View source

    Members

    action

    action: NotifyCollectionChangedAction
    

    Source

    new_items

    new_items: &'a [T]
    

    Source

    old_items

    old_items: &'a [T]
    

    Source

    new_starting_index

    new_starting_index: i32
    

    Source

    old_starting_index

    old_starting_index: i32
    

    Source

    share

    fn share(self: &Self) -> SharedNotifyCollectionChangedEventArgs<T>
    

    The change as an owned, shareable value: what untyped code (an event handler wired up by markup) is given, since the borrowed form cannot be held in an untyped value.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any

    Availability

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