FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ChangeSetWithContext

    struct · ferroui-dynamic-data · v0.5.0

    struct ChangeSetWithContext<T, K, X>
    

    The changes of a cache with a context (ChangeSet<TObject, TKey, TContext>, which implements IChangeSet<TObject, TKey, TContext>): the change sets of SortAndPage (PageContext) and of SortAndVirtualize (VirtualContext).

    Deviation (DEVIATIONS.md, DynamicData): Rust has no overloading of a type by the number of its parameters, so upstream's ChangeSet<TObject, TKey, TContext> is named ChangeSetWithContext. It dereferences to its ChangeSet, as upstream's derives from it.

    View source

    Members

    new

    fn new(collection: ChangeSet<T, K>, context: X) -> Self
    

    The changes collection with context (ChangeSet(IEnumerable<Change>, TContext)).

    Source

    empty

    fn empty(context: X) -> Self
    

    A change set without changes, with context (ChangeSet(TContext)).

    Source

    context

    fn context(self: &Self) -> &X
    

    The context (Context).

    Source

    changes

    fn changes(self: &Self) -> &ChangeSet<T, K>
    

    The changes.

    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
    • Deref
    • IntoIterator
    • IChangeSet<T, K>
    • Debug

    Availability

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