FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SourceCache

    struct · ferroui-dynamic-data · v0.5.0

    struct SourceCache<T, K>
    

    The source of a reactive keyed collection (SourceCache<TObject, TKey>): edits make change sets, which connect delivers to the operators.

    View source

    Members

    new

    fn new(key_selector: impl Fn(&T) -> K + 'static) -> Self
    

    An empty cache whose items are keyed by key_selector.

    Source

    edit

    fn edit(self: &Self, update: impl FnOnce(&mut dyn ISourceUpdater<T, K>) -> ())
    

    Runs an edit (Edit(Action<ISourceUpdater>)).

    Source

    suspend_count

    fn suspend_count(self: &Self) -> Rc<dyn IDisposable>
    

    Holds back the notifications of count changes (SuspendCount).

    Source

    suspend_notifications

    fn suspend_notifications(self: &Self) -> Rc<dyn IDisposable>
    

    Holds back the notifications of changes (SuspendNotifications).

    Source

    as_observable_cache_inner

    fn as_observable_cache_inner(self: &Self) -> &ObservableCache<T, K>
    

    The observable cache this source edits.

    Source

    Trait implementations

    Availability

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