FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ItemChange

    struct · ferroui-dynamic-data · v0.5.0

    struct ItemChange<T>
    

    The change of one item of a list (ItemChange<T>).

    View source

    Members

    new

    fn new(reason: super::ListChangeReason, current: T, previous: Option<T>, current_index: Option<usize>, previous_index: Option<usize>) -> Self
    

    ItemChange(ListChangeReason, T, in Optional<T>, int, int).

    Source

    reason

    fn reason(self: &Self) -> super::ListChangeReason
    

    The reason (Reason).

    Source

    current

    fn current(self: &Self) -> &T
    

    The item (Current).

    Source

    previous

    fn previous(self: &Self) -> Option<&T>
    

    The item that was replaced (Previous).

    Source

    current_index

    fn current_index(self: &Self) -> Option<usize>
    

    The index of the item (CurrentIndex; -1 upstream when none).

    Source

    previous_index

    fn previous_index(self: &Self) -> Option<usize>
    

    The previous index of a moved item (PreviousIndex).

    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
    • Equivalent<K>
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash

    Availability

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