FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CacheSourceListCombineEx

    trait · ferroui-dynamic-data · v0.5.0

    trait CacheSourceListCombineEx
    

    And, Or, Xor and Except of an observable list of sources (And(this IObservableList<IObservable<IChangeSet<TObject, TKey>>>), And(this IObservableList<IObservableCache<TObject, TKey>>), And(this IObservableList<ISourceCache<TObject, TKey>>), ..): the result follows the sources as they are added to the list and removed from it.

    View source

    Members

    Item

    type Item: Clone + 'static
    

    The type of the items.

    Source

    Key

    type Key: Eq + Hash + Clone + 'static
    

    The type of the keys.

    Source

    and_cache

    fn and_cache(self: &Self) -> Rc<dyn IObservable<ChangeSet<<Self as >::Item, <Self as >::Key>>>
    where <Self as >::Item: Deref
    

    The items that are in every source of the list; none while the list is empty (And(IObservableList<..>)).

    Source

    or

    fn or(self: &Self) -> Rc<dyn IObservable<ChangeSet<<Self as >::Item, <Self as >::Key>>>
    where <Self as >::Item: Deref
    

    The items that are in any source of the list (Or(IObservableList<..>)).

    Source

    xor

    fn xor(self: &Self) -> Rc<dyn IObservable<ChangeSet<<Self as >::Item, <Self as >::Key>>>
    where <Self as >::Item: Deref
    

    The items that are in exactly one source of the list (Xor(IObservableList<..>)).

    Source

    except

    fn except(self: &Self) -> Rc<dyn IObservable<ChangeSet<<Self as >::Item, <Self as >::Key>>>
    where <Self as >::Item: Deref
    

    The items of the first source of the list that are in none of the others (Except(IObservableList<..>)).

    Source

    Trait implementations

    Availability

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