FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ListObservableCollectionAdaptor

    struct · ferroui-dynamic-data · v0.5.0

    struct ListObservableCollectionAdaptor<T: Clone + PartialEq + 'static>
    

    Applies the change sets of a list to an observable collection, loading it with a reset above a threshold of changes (ObservableCollectionAdaptor<T>).

    View source

    Members

    new

    fn new(collection: Rc<dyn IObservableCollection<T>>) -> Self
    

    The adaptor with the default options (ObservableCollectionAdaptor(IObservableCollection<T>), DynamicDataOptions.Binding).

    Source

    with_options

    fn with_options(collection: Rc<dyn IObservableCollection<T>>, options: BindingOptions) -> Self
    

    The adaptor with options (ObservableCollectionAdaptor(IObservableCollection<T>, BindingOptions)).

    Source

    with_threshold

    fn with_threshold(collection: Rc<dyn IObservableCollection<T>>, refresh_threshold: usize, allow_replace: bool, reset_on_first_time_load: bool) -> Self
    

    The adaptor with every part (ObservableCollectionAdaptor(IObservableCollection<T>, int, bool allowReplace = true, bool resetOnFirstTimeLoad = true)).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • IChangeSetAdaptor<T>

    Availability

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