Struct erg_common::dict::Dict
source · [−]pub struct Dict<K, V> { /* private fields */ }
Implementations
sourceimpl<K, V> Dict<K, V>
impl<K, V> Dict<K, V>
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn capacity(&self) -> usize
pub fn keys(&self) -> Keys<'_, K, V>
pub fn values(&self) -> Values<'_, K, V>
pub fn values_mut(&mut self) -> ValuesMut<'_, K, V>
pub fn into_values(self) -> IntoValues<K, V>
pub fn iter(&self) -> Iter<'_, K, V>
pub fn iter_mut(&mut self) -> IterMut<'_, K, V>
pub fn clear(&mut self)
sourceimpl<K: Hash + Eq, V> Dict<K, V>
impl<K: Hash + Eq, V> Dict<K, V>
pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&V>where
K: Borrow<Q>,
Q: Hash + Eq,
pub fn get_mut<Q: ?Sized>(&mut self, k: &Q) -> Option<&mut V>where
K: Borrow<Q>,
Q: Hash + Eq,
pub fn get_key_value<Q: ?Sized>(&self, k: &Q) -> Option<(&K, &V)>where
K: Borrow<Q>,
Q: Hash + Eq,
pub fn contains_key<Q: ?Sized>(&self, k: &Q) -> boolwhere
K: Borrow<Q>,
Q: Hash + Eq,
pub fn insert(&mut self, k: K, v: V)
pub fn remove<Q: ?Sized>(&mut self, k: &Q) -> Option<V>where
K: Borrow<Q>,
Q: Hash + Eq,
pub fn extend<I: IntoIterator<Item = (K, V)>>(&mut self, iter: I)
pub fn merge(&mut self, other: Self)
pub fn concat(self, other: Self) -> Self
Trait Implementations
sourceimpl<K, V> IntoIterator for Dict<K, V>
impl<K, V> IntoIterator for Dict<K, V>
sourceimpl<K: Hash + Eq, V: Hash + Eq> PartialEq<Dict<K, V>> for Dict<K, V>
impl<K: Hash + Eq, V: Hash + Eq> PartialEq<Dict<K, V>> for Dict<K, V>
impl<K: Hash + Eq, V: Hash + Eq> Eq for Dict<K, V>
Auto Trait Implementations
impl<K, V> RefUnwindSafe for Dict<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Dict<K, V>where
K: Send,
V: Send,
impl<K, V> Sync for Dict<K, V>where
K: Sync,
V: Sync,
impl<K, V> Unpin for Dict<K, V>where
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for Dict<K, V>where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more