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.
Members
set
fn set(self: &Self, key: K, value: V)
Sets the value for key, adding the entry if it is not present.
add
fn add(self: &Self, key: K, value: V)
Adds an entry. Panics if the key is already present.
remove
fn remove(self: &Self, key: &K) -> bool
Removes the entry for key. Returns false if it is not present.
clear
fn clear(self: &Self)
Removes all entries.
is_read_only
fn is_read_only(self: &Self) -> bool
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.