FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

    fn new() -> Self
    

    An empty list (SourceList()).

    Source

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

    Source

    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.

    Source

    Trait implementations

    Availability

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