Struct serenity::utils::VecMap [−][src]
pub struct VecMap<K, V>(_);
Like HashMap
but solely uses a vector instead.
note: This is for internal use.
Methods
impl<K: PartialEq, V> VecMap<K, V>
[src]
impl<K: PartialEq, V> VecMap<K, V>
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn with_capacity(cap: usize) -> Self
[src]
pub fn with_capacity(cap: usize) -> Self
pub fn insert(&mut self, key: K, value: V)
[src]
pub fn insert(&mut self, key: K, value: V)
pub fn remove<Q: ?Sized + PartialEq<K>>(&mut self, key: &Q) -> Option<V>
[src]
pub fn remove<Q: ?Sized + PartialEq<K>>(&mut self, key: &Q) -> Option<V>
pub fn entry(&mut self, key: K) -> Entry<K, V>
[src]
pub fn entry(&mut self, key: K) -> Entry<K, V>
pub fn get<Q: PartialEq<K> + ?Sized>(&self, key: &Q) -> Option<&V>
[src]
pub fn get<Q: PartialEq<K> + ?Sized>(&self, key: &Q) -> Option<&V>
ⓘImportant traits for Iter<'a, T>pub fn iter(&self) -> Iter<(K, V)>
[src]
ⓘImportant traits for Iter<'a, T>
pub fn iter(&self) -> Iter<(K, V)>
Trait Implementations
impl<K: Clone, V: Clone> Clone for VecMap<K, V>
[src]
impl<K: Clone, V: Clone> Clone for VecMap<K, V>
fn clone(&self) -> VecMap<K, V>
[src]
fn clone(&self) -> VecMap<K, V>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
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 VecMap<K, V>
[src]
impl<K: Debug, V: Debug> Debug for VecMap<K, V>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<K: Default, V: Default> Default for VecMap<K, V>
[src]
impl<K: Default, V: Default> Default for VecMap<K, V>
impl<K, V> IntoIterator for VecMap<K, V>
[src]
impl<K, V> IntoIterator for VecMap<K, V>
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]
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl<'a, K, V> IntoIterator for &'a VecMap<K, V>
[src]
impl<'a, K, V> IntoIterator for &'a VecMap<K, V>