[−][src]Enum simd_json::halfbrown::HashMap
Variants
Map(HashBrown<K, V>)
Vec(VecMap<K, V>)
None
Methods
impl<K, V> HashMap<K, V> where
K: Eq + Hash,
[src]
K: Eq + Hash,
pub fn new() -> Self
[src]
pub fn with_capacity(capacity: usize) -> Self
[src]
pub fn capacity(&self) -> usize
[src]
ⓘImportant traits for Keys<'a, K, V>pub fn keys(&self) -> Keys<K, V>
[src]
ⓘImportant traits for Keys<'a, K, V>
ⓘImportant traits for Values<'a, K, V>pub fn values(&self) -> Values<K, V>
[src]
ⓘImportant traits for Values<'a, K, V>
ⓘImportant traits for ValuesMut<'a, K, V>pub fn values_mut(&mut self) -> ValuesMut<K, V>
[src]
ⓘImportant traits for ValuesMut<'a, K, V>
ⓘImportant traits for Iter<'a, K, V>pub fn iter(&self) -> Iter<K, V>
[src]
ⓘImportant traits for Iter<'a, K, V>
ⓘImportant traits for IterMut<'a, K, V>pub fn iter_mut(&mut self) -> IterMut<K, V>
[src]
ⓘImportant traits for IterMut<'a, K, V>
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn insert(&mut self, k: K, v: V) -> Option<V>
[src]
pub fn remove<Q: ?Sized>(&mut self, k: &Q) -> Option<V> where
K: Borrow<Q>,
Q: Hash + Eq,
[src]
K: Borrow<Q>,
Q: Hash + Eq,
pub fn clear(&mut self)
[src]
pub fn insert_nocheck(&mut self, k: K, v: V)
[src]
pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&V> where
K: Borrow<Q>,
Q: Hash + Eq,
[src]
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,
[src]
K: Borrow<Q>,
Q: Hash + Eq,
Trait Implementations
impl<K: Clone, V: Clone> Clone for HashMap<K, V> where
K: Eq + Hash,
[src]
K: Eq + Hash,
fn clone(&self) -> HashMap<K, V>
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<K, V> PartialEq<HashMap<K, V>> for HashMap<K, V> where
K: Eq + Hash,
V: PartialEq,
[src]
K: Eq + Hash,
V: PartialEq,
fn eq(&self, other: &Self) -> bool
[src]
#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
default fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl<K, V> Default for HashMap<K, V> where
K: Eq + Hash,
[src]
K: Eq + Hash,
impl<K, V> IntoIterator for HashMap<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?
ⓘImportant traits for IntoIter<K, V>fn into_iter(self) -> IntoIter<K, V>
[src]
ⓘImportant traits for IntoIter<K, V>
impl<'a, K, V> IntoIterator for &'a HashMap<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?
ⓘImportant traits for Iter<'a, K, V>fn into_iter(self) -> Iter<'a, K, V>
[src]
ⓘImportant traits for Iter<'a, K, V>
impl<K, Q: ?Sized, V, '_> Index<&'_ Q> for HashMap<K, V> where
K: Eq + Hash + Borrow<Q>,
Q: Eq + Hash,
[src]
K: Eq + Hash + Borrow<Q>,
Q: Eq + Hash,
impl<K, V> FromIterator<(K, V)> for HashMap<K, V> where
K: Eq + Hash,
[src]
K: Eq + Hash,
fn from_iter<T: IntoIterator<Item = (K, V)>>(iter: T) -> Self
[src]
impl<K: Debug, V: Debug> Debug for HashMap<K, V> where
K: Eq + Hash,
[src]
K: Eq + Hash,
impl<K, V> Serialize for HashMap<K, V> where
K: Eq + Hash + Serialize,
V: Serialize,
[src]
K: Eq + Hash + Serialize,
V: Serialize,
impl<'de, K, V> Deserialize<'de> for HashMap<K, V> where
K: Eq + Hash + Deserialize<'de>,
V: Deserialize<'de>,
[src]
K: Eq + Hash + Deserialize<'de>,
V: Deserialize<'de>,
fn deserialize<D>(deserializer: D) -> Result<HashMap<K, V>, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl<K, V> Send for HashMap<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Sync for HashMap<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,