pub struct Dictionary<V>{ /* private fields */ }
Expand description
A ‘dictionary’ is a ‘collection’ containing ‘string’ label keys associated with a value.
Implementations§
Trait Implementations§
Source§impl<V> Clear for Dictionary<V>
impl<V> Clear for Dictionary<V>
Source§impl<V> Clone for Dictionary<V>
impl<V> Clone for Dictionary<V>
Source§impl<V> Collection for Dictionary<V>
impl<V> Collection for Dictionary<V>
Source§impl<V> Debug for Dictionary<V>
impl<V> Debug for Dictionary<V>
Source§impl<V> Empty for Dictionary<V>
impl<V> Empty for Dictionary<V>
Source§impl<V> Index<&str> for Dictionary<V>
impl<V> Index<&str> for Dictionary<V>
Source§impl<V> Index<String> for Dictionary<V>
impl<V> Index<String> for Dictionary<V>
Source§impl<V> IndexMut<&str> for Dictionary<V>
impl<V> IndexMut<&str> for Dictionary<V>
Source§impl<V> IndexMut<String> for Dictionary<V>
impl<V> IndexMut<String> for Dictionary<V>
Source§impl<V> IntoIterator for Dictionary<V>
impl<V> IntoIterator for Dictionary<V>
Source§impl<V> Len for Dictionary<V>
impl<V> Len for Dictionary<V>
Source§impl<V> MapCollection<String, V> for Dictionary<V>
impl<V> MapCollection<String, V> for Dictionary<V>
Source§fn get(&self, key: String) -> Option<&V>
fn get(&self, key: String) -> Option<&V>
Returns the value associated with the specified key, or None if the key does not exist.
Source§fn insert(&mut self, pair: KeyValue<String, V>) -> bool
fn insert(&mut self, pair: KeyValue<String, V>) -> bool
Inserts a new key/value pair into this ‘dictionary’. Returns true is successful. Returns false if the key already exists.
Source§impl<V> PartialEq for Dictionary<V>
impl<V> PartialEq for Dictionary<V>
Source§impl<V> Sortable for Dictionary<V>
impl<V> Sortable for Dictionary<V>
Source§fn is_sorted_rev(&self) -> bool
fn is_sorted_rev(&self) -> bool
Returns true if this ‘dictionary’ is sorted in descending order.
Auto Trait Implementations§
impl<V> Freeze for Dictionary<V>
impl<V> RefUnwindSafe for Dictionary<V>where
V: RefUnwindSafe,
impl<V> Send for Dictionary<V>where
V: Send,
impl<V> Sync for Dictionary<V>where
V: Sync,
impl<V> Unpin for Dictionary<V>where
V: Unpin,
impl<V> UnwindSafe for Dictionary<V>where
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more