[][src]Enum simd_json::halfbrown::HashMap

pub enum HashMap<K, V> where
    K: Eq + Hash
{ Map(HashBrown<K, V>), Vec(VecMap<K, V>), None, }

Variants

Map(HashBrown<K, V>)Vec(VecMap<K, V>)None

Methods

impl<K, V> HashMap<K, V> where
    K: Eq + Hash
[src]

pub fn new() -> Self[src]

pub fn with_capacity(capacity: usize) -> Self[src]

pub fn insert(&mut self, k: K, v: V) -> Option<V>[src]

pub fn clear(&mut self)[src]

pub fn insert_nocheck(&mut self, k: K, v: V)[src]

pub fn len(&self) -> usize[src]

pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&V> where
    K: Borrow<Q>,
    Q: Hash + Eq
[src]

pub fn get_mut<Q: ?Sized>(&mut self, k: &Q) -> Option<&mut V> where
    K: Borrow<Q>,
    Q: Hash + Eq
[src]

Important traits for Iter<'a, K, V>
pub fn iter(&self) -> Iter<K, V>[src]

Trait Implementations

impl<K, V> PartialEq<HashMap<K, V>> for HashMap<K, V> where
    K: Eq + Hash,
    V: PartialEq
[src]

#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl<K: Clone, V: Clone> Clone for HashMap<K, V> where
    K: Eq + Hash
[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<K, V> Default for HashMap<K, V> where
    K: Eq + Hash
[src]

impl<K, V> IntoIterator for HashMap<K, V> where
    K: Eq + Hash
[src]

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?

impl<'a, K, V> IntoIterator for &'a HashMap<K, V> where
    K: Eq + Hash
[src]

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?

impl<K: Debug, V: Debug> Debug for HashMap<K, V> where
    K: Eq + Hash
[src]

impl<K, V> FromIterator<(K, V)> for HashMap<K, V> where
    K: Eq + Hash
[src]

impl<K, Q: ?Sized, V, '_> Index<&'_ Q> for HashMap<K, V> where
    K: Eq + Hash + Borrow<Q>,
    Q: Eq + Hash
[src]

type Output = V

The returned type after indexing.

impl<K, V> Serialize for HashMap<K, V> where
    K: Eq + Hash + Serialize,
    V: Serialize
[src]

impl<'de, K, V> Deserialize<'de> for HashMap<K, V> where
    K: Eq + Hash + Deserialize<'de>,
    V: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<K, V> Send for HashMap<K, V> where
    K: Send,
    V: Send

impl<K, V> Sync for HashMap<K, V> where
    K: Sync,
    V: Sync

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

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?

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]