[−][src]Struct plain_map::PlainMap
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,
Key: Send,
Value: Send,
impl<Key, Value> Unpin for PlainMap<Key, Value> where
Key: Unpin,
Value: Unpin,
Key: Unpin,
Value: Unpin,
impl<Key, Value> Sync for PlainMap<Key, Value> where
Key: Sync,
Value: Sync,
Key: Sync,
Value: Sync,
impl<Key, Value> UnwindSafe for PlainMap<Key, Value> where
Key: RefUnwindSafe + UnwindSafe,
Value: RefUnwindSafe + UnwindSafe,
Key: RefUnwindSafe + UnwindSafe,
Value: RefUnwindSafe + UnwindSafe,
impl<Key, Value> RefUnwindSafe for PlainMap<Key, Value> where
Key: RefUnwindSafe,
Value: RefUnwindSafe,
Key: RefUnwindSafe,
Value: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,