FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SharedNotifyCollectionChangedEventArgs

    struct · ferroui-system · v0.5.0

    struct SharedNotifyCollectionChangedEventArgs<T>
    

    The owned form of NotifyCollectionChangedEventArgs: a shared handle to the description of a change. Clones refer to the same description and handles compare by identity, as the event args object this mirrors.

    View source

    Members

    action

    fn action(self: &Self) -> NotifyCollectionChangedAction
    

    The action that caused the notification.

    Source

    new_items

    fn new_items(self: &Self) -> &[T]
    

    The items involved in the change that are new.

    Source

    old_items

    fn old_items(self: &Self) -> &[T]
    

    The items affected by a replace, remove or move.

    Source

    new_starting_index

    fn new_starting_index(self: &Self) -> i32
    

    The index at which the change occurred; -1 when not applicable.

    Source

    old_starting_index

    fn old_starting_index(self: &Self) -> i32
    

    The index at which a move, remove or replace occurred; -1 when not applicable.

    Source

    as_args

    fn as_args(self: &Self) -> NotifyCollectionChangedEventArgs<'_, T>
    

    The change in the borrowed form handlers take.

    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
    • Clone
    • PartialEq

    Availability

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