IObservableList
trait · ferroui-dynamic-data · v0.5.0
trait IObservableList<T>: IDisposable
A list that can be observed (IObservableList<T>).
Members
count
fn count(self: &Self) -> usize
The number of items (Count).
count_changed
fn count_changed(self: &Self) -> Rc<dyn IObservable<usize>>
The number of items, now and whenever it changes (CountChanged).
items
fn items(self: &Self) -> Vec<T>
The items (Items).
connect_with
fn connect_with(self: &Self, predicate: Option<Rc<dyn Fn(&T) -> bool>>) -> Rc<dyn IObservable<ChangeSet<T>>>
The items as one range added, then the changes, of the items that predicate accepts
(Connect).
preview_with
fn preview_with(self: &Self, predicate: Option<Rc<dyn Fn(&T) -> bool>>) -> Rc<dyn IObservable<ChangeSet<T>>>
The changes before they are applied (Preview).
connect
fn connect(self: &Self) -> Rc<dyn IObservable<ChangeSet<T>>>
The items and their changes (Connect()).
preview
fn preview(self: &Self) -> Rc<dyn IObservable<ChangeSet<T>>>
The changes before they are applied (Preview()).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.