pub struct Map<K, V>(/* private fields */);Implementations§
Trait Implementations§
Source§impl<K, V> MappedTrait<K, V> for Map<K, V>
impl<K, V> MappedTrait<K, V> for Map<K, V>
fn for_each(&self, action: &dyn Fn(K, V))
fn get(&self, key: K) -> Result<V>
fn get_or(&self, key: K, fallback: V) -> V
fn has(&self, key: K) -> bool
fn keys(&self) -> Listed<K>
fn len(&self) -> i32
fn to_list(&self) -> List<(K, V)>
fn to_map(&self) -> Map<K, V>
fn to_map_builder(&self) -> MapBuilder<K, V>
fn values(&self) -> Listed<V>
Auto Trait Implementations§
impl<K, V> Freeze for Map<K, V>
impl<K, V> RefUnwindSafe for Map<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Map<K, V>
impl<K, V> Sync for Map<K, V>
impl<K, V> Unpin for Map<K, V>
impl<K, V> UnwindSafe for Map<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
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