pub struct NestedHashMap<K, V> {
pub entries: HashMap<K, NestedValue<K, V>>,
}
Expand description
A nested hashmap
Fields§
§entries: HashMap<K, NestedValue<K, V>>
The internal hashmap
Implementations§
Source§impl<K, V> NestedHashMap<K, V>
impl<K, V> NestedHashMap<K, V>
Sourcepub fn insert(&mut self, key: K, value: NestedValue<K, V>)
pub fn insert(&mut self, key: K, value: NestedValue<K, V>)
Inserts a new entry into the nested hashmap
Trait Implementations§
Source§impl<K: Clone, V: Clone> Clone for NestedHashMap<K, V>
impl<K: Clone, V: Clone> Clone for NestedHashMap<K, V>
Source§fn clone(&self) -> NestedHashMap<K, V>
fn clone(&self) -> NestedHashMap<K, V>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<K, V> Default for NestedHashMap<K, V>
impl<K, V> Default for NestedHashMap<K, V>
Source§impl<K, V> From<NestedHashMap<K, V>> for NestedValue<K, V>
impl<K, V> From<NestedHashMap<K, V>> for NestedValue<K, V>
Source§fn from(map: NestedHashMap<K, V>) -> Self
fn from(map: NestedHashMap<K, V>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<K, V> Freeze for NestedHashMap<K, V>
impl<K, V> RefUnwindSafe for NestedHashMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for NestedHashMap<K, V>
impl<K, V> Sync for NestedHashMap<K, V>
impl<K, V> Unpin for NestedHashMap<K, V>
impl<K, V> UnwindSafe for NestedHashMap<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Convert into an
Option
.