FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IFerroDictionary

    trait · ferroui-base · v0.5.0

    trait IFerroDictionary<K, V>: IFerroReadOnlyDictionary<K, V>
    

    A notifying dictionary.

    The members of the dictionary contract it extends are part of the trait.

    View source

    Members

    set

    fn set(self: &Self, key: K, value: V)
    

    Sets the value for key, adding the entry if it is not present.

    Source

    add

    fn add(self: &Self, key: K, value: V)
    

    Adds an entry. Panics if the key is already present.

    Source

    remove

    fn remove(self: &Self, key: &K) -> bool
    

    Removes the entry for key. Returns false if it is not present.

    Source

    clear

    fn clear(self: &Self)
    

    Removes all entries.

    Source

    is_read_only

    fn is_read_only(self: &Self) -> bool
    

    Source

    Trait implementations

    Availability

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