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.
Members
new
fn new(key_selector: impl Fn(&T) -> K + 'static) -> Self
An empty cache whose items are keyed by key_selector.
edit
fn edit(self: &Self, update: impl FnOnce(&mut dyn ISourceUpdater<T, K>) -> ())
Runs an edit (Edit(Action<ISourceUpdater>)).
suspend_count
fn suspend_count(self: &Self) -> Rc<dyn IDisposable>
Holds back the notifications of count changes (SuspendCount).
suspend_notifications
fn suspend_notifications(self: &Self) -> Rc<dyn IDisposable>
Holds back the notifications of changes (SuspendNotifications).
as_observable_cache_inner
fn as_observable_cache_inner(self: &Self) -> &ObservableCache<T, K>
The observable cache this source edits.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeSourceCacheEx<T, K>Borrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedCacheChangeSetSourceCloneIConnectableCache<T, K>IObservableCache<T, K>ISourceCache<T, K>IDisposable
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.