Struct json_api::value::map::Map
[−]
[src]
pub struct Map<K, V> where
K: Eq + Hash, { /* fields omitted */ }
Methods
impl<K, V> Map<K, V> where
K: Eq + Hash,
[src]
K: Eq + Hash,
fn new() -> Self
[src]
fn with_capacity(capacity: usize) -> Self
[src]
fn clear(&mut self)
[src]
fn contains_key<Q>(&self, key: &Q) -> bool where
Q: Equivalent<K> + Hash,
[src]
Q: Equivalent<K> + Hash,
fn drain(&mut self, range: RangeFull) -> Drain<K, V>
[src]
fn get<Q>(&self, key: &Q) -> Option<&V> where
Q: Equivalent<K> + Hash,
[src]
Q: Equivalent<K> + Hash,
fn insert(&mut self, key: K, value: V) -> Option<V>
[src]
fn iter(&self) -> Iter<K, V>
[src]
fn iter_mut(&mut self) -> IterMut<K, V>
[src]
fn keys(&self) -> Keys<K, V>
[src]
fn len(&self) -> usize
[src]
fn is_empty(&self) -> bool
[src]
fn remove<Q>(&mut self, key: &Q) -> Option<V> where
Q: Equivalent<K> + Hash,
[src]
Q: Equivalent<K> + Hash,
fn values(&self) -> Values<K, V>
[src]
fn values_mut(&mut self) -> ValuesMut<K, V>
[src]
Trait Implementations
impl<K: Clone, V: Clone> Clone for Map<K, V> where
K: Eq + Hash,
[src]
K: Eq + Hash,
fn clone(&self) -> Map<K, V>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<K: Debug, V: Debug> Debug for Map<K, V> where
K: Eq + Hash,
[src]
K: Eq + Hash,
impl<K: Eq, V: Eq> Eq for Map<K, V> where
K: Eq + Hash,
[src]
K: Eq + Hash,
impl<K: PartialEq, V: PartialEq> PartialEq for Map<K, V> where
K: Eq + Hash,
[src]
K: Eq + Hash,
fn eq(&self, __arg_0: &Map<K, V>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Map<K, V>) -> bool
[src]
This method tests for !=
.
impl<K, V> Default for Map<K, V> where
K: Eq + Hash,
[src]
K: Eq + Hash,
impl<K, V> Extend<(K, V)> for Map<K, V> where
K: Eq + Hash,
[src]
K: Eq + Hash,
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = (K, V)>,
[src]
I: IntoIterator<Item = (K, V)>,
Extends a collection with the contents of an iterator. Read more
impl<K, V> FromIterator<(K, V)> for Map<K, V> where
K: Eq + Hash,
[src]
K: Eq + Hash,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = (K, V)>,
[src]
I: IntoIterator<Item = (K, V)>,
Creates a value from an iterator. Read more
impl<K, V> IntoIterator for Map<K, V> where
K: Eq + Hash,
[src]
K: Eq + Hash,
type Item = (K, V)
The type of the elements being iterated over.
type IntoIter = IntoIter<K, V>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more
impl<'a, K, V> IntoIterator for &'a Map<K, V> where
K: Eq + Hash,
[src]
K: Eq + Hash,
type Item = (&'a K, &'a V)
The type of the elements being iterated over.
type IntoIter = Iter<'a, K, V>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more
impl<'a, K, V> IntoIterator for &'a mut Map<K, V> where
K: Eq + Hash,
[src]
K: Eq + Hash,
type Item = (&'a K, &'a mut V)
The type of the elements being iterated over.
type IntoIter = IterMut<'a, K, V>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more
impl<'de, K, V> Deserialize<'de> for Map<K, V> where
K: Deserialize<'de> + Eq + Hash,
V: Deserialize<'de>,
[src]
K: Deserialize<'de> + Eq + Hash,
V: Deserialize<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<K, V> Serialize for Map<K, V> where
K: Eq + Hash + Serialize,
V: Serialize,
[src]
K: Eq + Hash + Serialize,
V: Serialize,