[][src]Struct plain_map::PlainMap

pub struct PlainMap<Key, Value> { /* fields omitted */ }

Methods

impl<Key: PartialEq, Value> PlainMap<Key, Value>[src]

pub fn new() -> Self[src]

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

pub fn reserve(&mut self, additional: usize)[src]

pub fn shrink_to_fit(&mut self)[src]

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

pub fn get(&self, k: &Key) -> Option<&Value>[src]

pub fn get_mut(&mut self, k: &Key) -> Option<&mut Value>[src]

pub fn get_key_value(&self, k: &Key) -> Option<&(Key, Value)>[src]

pub fn get_key_value_mut(&mut self, k: &Key) -> Option<&mut (Key, Value)>[src]

pub fn contains_key(&self, k: &Key) -> bool[src]

pub fn remove(&mut self, k: &Key) -> Option<Value>[src]

pub fn remove_entry(&mut self, k: &Key) -> Option<(Key, Value)>[src]

pub fn entry(&mut self, k: Key) -> PlainMapEntry<Key, Value>[src]

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

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

pub fn is_empty(&self) -> bool[src]

pub fn clear(&mut self)[src]

pub fn iter(&self) -> Iter<(Key, Value)>[src]

pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut (Key, Value)>[src]

pub fn keys(&self) -> impl Iterator<Item = &Key>[src]

pub fn keys_mut(&mut self) -> impl Iterator<Item = &mut Key>[src]

pub fn values(&self) -> impl Iterator<Item = &Value>[src]

pub fn values_mut(&mut self) -> impl Iterator<Item = &mut Value>[src]

pub fn drain(&mut self) -> Drain<(Key, Value)>[src]

Trait Implementations

impl<Key: Clone, Value: Clone> Clone for PlainMap<Key, Value>[src]

impl<Key: Debug, Value: Debug> Debug for PlainMap<Key, Value>[src]

Auto Trait Implementations

impl<Key, Value> Send for PlainMap<Key, Value> where
    Key: Send,
    Value: Send

impl<Key, Value> Unpin for PlainMap<Key, Value> where
    Key: Unpin,
    Value: Unpin

impl<Key, Value> Sync for PlainMap<Key, Value> where
    Key: Sync,
    Value: Sync

impl<Key, Value> UnwindSafe for PlainMap<Key, Value> where
    Key: RefUnwindSafe + UnwindSafe,
    Value: RefUnwindSafe + UnwindSafe

impl<Key, Value> RefUnwindSafe for PlainMap<Key, Value> where
    Key: RefUnwindSafe,
    Value: RefUnwindSafe

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

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