[−][src]Struct vecmap::vecmap::VecMap
Methods
impl<K: Ord, V> VecMap<K, V>
[src]
pub fn new() -> Self
[src]
pub fn insert(&mut self, k: K, v: V) -> Option<V>
[src]
pub fn entry(&mut self, key: K) -> Entry<K, V>
[src]
pub fn get_at(&self, index: usize) -> &V
[src]
pub fn get(&self, key: &K) -> Option<&V>
[src]
pub fn iter(&self) -> impl Iterator<Item = &(K, V)>
[src]
pub fn iter_mut(&mut self) -> impl Iterator<Item = (&K, &mut V)>
[src]
pub fn keys(&self) -> impl Iterator<Item = &K>
[src]
pub fn values(&self) -> impl Iterator<Item = &V>
[src]
pub fn values_mut(&mut self) -> impl Iterator<Item = &mut V>
[src]
Trait Implementations
Auto Trait Implementations
impl<K, V> RefUnwindSafe for VecMap<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for VecMap<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Sync for VecMap<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V> Unpin for VecMap<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for VecMap<K, V> where
K: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,