SourceList
struct · ferroui-dynamic-data · v0.5.0
struct SourceList<T>
The source of a reactive list (SourceList<T>): edits make change sets, which connect
delivers to the operators.
Members
new
fn new() -> Self
An empty list (SourceList()).
from_source
fn from_source<C: super::IChangeSet<T>>(source: Rc<dyn IObservable<C>>) -> Self
A list that applies the change sets of source (SourceList(IObservable<IChangeSet<T>>)).
edit
fn edit(self: &Self, update: impl FnOnce(&mut dyn IExtendedList<T>) -> ())
Runs an edit (Edit(Action<IExtendedList<T>>)): the changes are delivered when the
outermost edit ends, before the edit is no longer in progress.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeSourceListEditConvenienceEx<T>SourceListEx<T>Borrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedCacheSourceListCombineExListChangeSetSourceListSourceListCombineExCloneDefaultIObservableList<T>ISourceList<T>IDisposable
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.