FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IObservableList

    trait · ferroui-dynamic-data · v0.5.0

    trait IObservableList<T>: IDisposable
    

    A list that can be observed (IObservableList<T>).

    View source

    Members

    count

    fn count(self: &Self) -> usize
    

    The number of items (Count).

    Source

    count_changed

    fn count_changed(self: &Self) -> Rc<dyn IObservable<usize>>
    

    The number of items, now and whenever it changes (CountChanged).

    Source

    items

    fn items(self: &Self) -> Vec<T>
    

    The items (Items).

    Source

    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).

    Source

    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).

    Source

    connect

    fn connect(self: &Self) -> Rc<dyn IObservable<ChangeSet<T>>>
    

    The items and their changes (Connect()).

    Source

    preview

    fn preview(self: &Self) -> Rc<dyn IObservable<ChangeSet<T>>>
    

    The changes before they are applied (Preview()).

    Source

    Trait implementations

    Availability

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