FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IObservableCache

    trait · ferroui-dynamic-data · v0.5.0

    trait IObservableCache<T, K>: IConnectableCache<T, K> + IDisposable
    

    A cache that can be observed and read (IObservableCache<TObject, TKey>).

    View source

    Members

    count

    fn count(self: &Self) -> usize
    

    The number of items (Count).

    Source

    items

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

    The items (Items).

    Source

    keys

    fn keys(self: &Self) -> Vec<K>
    

    The keys (Keys).

    Source

    key_values

    fn key_values(self: &Self) -> IndexMap<K, T>
    

    The keys and items, in the order of enumeration of the cache (KeyValues).

    Source

    lookup

    fn lookup(self: &Self, key: &K) -> Option<T>
    

    The item of key (Lookup).

    Source

    Trait implementations

    Availability

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