Struct abstutil::VecMap[][src]

pub struct VecMap<K, V> {
    inner: Vec<(K, V)>,
}

Use when your key is just PartialEq, not Ord or Hash.

Fields

inner: Vec<(K, V)>

Implementations

impl<K: Clone + PartialEq, V> VecMap<K, V>[src]

pub fn new() -> VecMap<K, V>[src]

pub fn consume(self) -> Vec<(K, V)>[src]

pub fn mut_or_insert<F: Fn() -> V>(&mut self, key: K, ctor: F) -> &mut V[src]

Auto Trait Implementations

impl<K, V> RefUnwindSafe for VecMap<K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe
[src]

impl<K, V> Send for VecMap<K, V> where
    K: Send,
    V: Send
[src]

impl<K, V> Sync for VecMap<K, V> where
    K: Sync,
    V: Sync
[src]

impl<K, V> Unpin for VecMap<K, V> where
    K: Unpin,
    V: Unpin
[src]

impl<K, V> UnwindSafe for VecMap<K, V> where
    K: UnwindSafe,
    V: UnwindSafe
[src]

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.