pub struct Dictionary<K, V>{ /* private fields */ }Implementations§
Source§impl<K, V> Dictionary<K, V>
impl<K, V> Dictionary<K, V>
Sourcepub fn new() -> Dictionary<K, V>
pub fn new() -> Dictionary<K, V>
pub fn with_capacity(size: usize) -> Dictionary<K, V>
pub fn clear(&mut self)
pub fn contains_key(&self, key: &K) -> bool
pub fn from_vecs(key_vec: Vec<K>, value_vec: Vec<V>) -> Dictionary<K, V>
pub fn from_tuples(tuples: Vec<(K, V)>) -> Dictionary<K, V>
pub fn get_full<Q>(&self, key: &Q) -> Option<(usize, &K, &V)>
pub fn get_index_of<Q>(&self, key: &Q) -> Option<usize>
pub fn get_key_value<Q>(&self, key: &Q) -> Option<(&K, &V)>
pub fn iter(&self) -> Iter<'_, K, V>
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn remove(&mut self, key: &K) -> Option<V>
pub fn remove_entry<Q>(&mut self, key: &Q) -> Option<(K, V)>
Trait Implementations§
Source§impl<K, V> Debug for Dictionary<K, V>
impl<K, V> Debug for Dictionary<K, V>
Source§impl<K, V> Display for Dictionary<K, V>
impl<K, V> Display for Dictionary<K, V>
Source§impl<K, V, X> Equivalent<X> for Dictionary<K, V>
impl<K, V, X> Equivalent<X> for Dictionary<K, V>
Source§fn equivalent(&self, other: &X) -> bool
fn equivalent(&self, other: &X) -> bool
Compare self to
key and return true if they are equal.Source§impl<'a, K, V> FromIterator<&'a (K, V)> for Dictionary<K, V>
impl<'a, K, V> FromIterator<&'a (K, V)> for Dictionary<K, V>
Source§impl<K, V> FromIterator<(K, V)> for Dictionary<K, V>
impl<K, V> FromIterator<(K, V)> for Dictionary<K, V>
Source§impl<K, V: PartialEq> PartialEq for Dictionary<K, V>
impl<K, V: PartialEq> PartialEq for Dictionary<K, V>
impl<K, V> StructuralPartialEq for Dictionary<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for Dictionary<K, V>
impl<K, V> RefUnwindSafe for Dictionary<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Dictionary<K, V>
impl<K, V> Sync for Dictionary<K, V>
impl<K, V> Unpin for Dictionary<K, V>
impl<K, V> UnwindSafe for Dictionary<K, V>where
K: UnwindSafe,
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