FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ChangeSet

    struct · ferroui-dynamic-data · v0.5.0

    struct ChangeSet<T>
    

    The changes of one edit of a list (ChangeSet<T>): shared and immutable, as the change sets of caches are.

    View source

    Members

    empty

    fn empty() -> Self
    

    A change set without changes (ChangeSet<T>.Empty).

    Source

    changes

    fn changes(self: &Self) -> &[Change<T>]
    

    The changes, in order.

    Source

    count

    fn count(self: &Self) -> usize
    

    The number of changes (Count).

    Source

    adds

    fn adds(self: &Self) -> usize
    

    The number of items added, ranges counted by their items (Adds).

    Source

    moves

    fn moves(self: &Self) -> usize
    

    The number of moves (Moves).

    Source

    refreshes

    fn refreshes(self: &Self) -> usize
    

    The number of refreshes (Refreshes).

    Source

    removes

    fn removes(self: &Self) -> usize
    

    The number of items removed, ranges and clears counted by their items (Removes).

    Source

    replaced

    fn replaced(self: &Self) -> usize
    

    The number of replacements (Replaced).

    Source

    total_changes

    fn total_changes(self: &Self) -> usize
    

    The number of changed items (TotalChanges).

    Source

    ptr_eq

    fn ptr_eq(self: &Self, other: &Self) -> bool
    

    Whether self and other are the same change set (ReferenceEquals).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • ToOwned
    • Clone
    • Default
    • From<Vec<Change<T>>>
    • FromIterator<Change<T>>
    • Deref
    • IntoIterator
    • PartialEq
    • Debug
    • IChangeSet<T>

    Availability

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