FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ChangeSet

    struct · ferroui-dynamic-data · v0.5.0

    struct ChangeSet<T, K>
    

    The changes of one edit of a cache (ChangeSet<TObject, TKey>): a shared, immutable list, which every observer of a sequence receives as it is (docs/porting/reactive.md, section 5.4).

    View source

    Members

    empty

    fn empty() -> Self
    

    A change set without changes (ChangeSet<TObject, TKey>.Empty).

    Source

    changes

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

    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 additions (Adds).

    Source

    updates

    fn updates(self: &Self) -> usize
    

    The number of updates (Updates).

    Source

    removes

    fn removes(self: &Self) -> usize
    

    The number of removals (Removes).

    Source

    refreshes

    fn refreshes(self: &Self) -> usize
    

    The number of refreshes (Refreshes).

    Source

    moves

    fn moves(self: &Self) -> usize
    

    The number of moves (Moves).

    Source

    to_vec

    fn to_vec(self: &Self) -> Vec<Change<T, K>>
    where T: Clone,
          K: Clone
    

    The changes as a list of their own, to build on.

    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, K>>>
    • FromIterator<Change<T, K>>
    • Deref
    • IntoIterator
    • PartialEq
    • Debug
    • IChangeSet<T, K>
    • From<ChangeSet<Group<T, K, G>, G>>
    • From<ChangeSet<ImmutableGroup<T, K, G>, G>>

    Availability

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