[][src]Struct kg_symbol::SymbolMap

pub struct SymbolMap<V> { /* fields omitted */ }

Implementations

impl<V> SymbolMap<V>[src]

pub fn new() -> Self[src]

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

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

pub fn shrink_to_fit(&mut self)[src]

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

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

pub fn clear(&mut self)[src]

pub fn contains_key<Q: ?Sized>(&self, k: &Q) -> bool where
    Q: AsRef<str> + Hash + Eq,
    Symbol: Borrow<Q>, 
[src]

pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&V> where
    Q: AsRef<str> + Hash + Eq
[src]

pub fn remove<Q: ?Sized>(&mut self, k: &Q) -> Option<V> where
    Q: AsRef<str> + Hash + Eq
[src]

pub fn remove_at(&mut self, index: usize) -> Option<V>[src]

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

pub fn insert_at(&mut self, index: usize, k: Symbol, v: V) -> Option<V>[src]

pub fn pop_front(&mut self) -> Option<(Symbol, V)>[src]

pub fn pop_back(&mut self) -> Option<(Symbol, V)>[src]

pub fn iter(&self) -> Iter<'_, V>

Notable traits for Iter<'a, V>

impl<'a, V: 'a> Iterator for Iter<'a, V> type Item = (&'a Symbol, &'a V);
[src]

pub fn iter_mut(&mut self) -> IterMut<'_, V>

Notable traits for IterMut<'a, V>

impl<'a, V: 'a> Iterator for IterMut<'a, V> type Item = (&'a Symbol, &'a mut V);
[src]

pub fn keys(&self) -> Keys<'_, V>

Notable traits for Keys<'a, V>

impl<'a, V: 'a> Iterator for Keys<'a, V> type Item = &'a Symbol;
[src]

pub fn values(&self) -> Values<'_, V>

Notable traits for Values<'a, V>

impl<'a, V: 'a> Iterator for Values<'a, V> type Item = &'a V;
[src]

pub fn values_mut(&mut self) -> ValuesMut<'_, V>

Notable traits for ValuesMut<'a, V>

impl<'a, V: 'a> Iterator for ValuesMut<'a, V> type Item = &'a mut V;
[src]

Trait Implementations

impl<V: Debug> Debug for SymbolMap<V>[src]

impl<V> Default for SymbolMap<V>[src]

impl<V: HeapSizeOf> HeapSizeOf for SymbolMap<V>[src]

Auto Trait Implementations

impl<V> RefUnwindSafe for SymbolMap<V> where
    V: RefUnwindSafe

impl<V> Send for SymbolMap<V> where
    V: Send

impl<V> Sync for SymbolMap<V> where
    V: Sync

impl<V> Unpin for SymbolMap<V> where
    V: Unpin

impl<V> UnwindSafe for SymbolMap<V> where
    V: UnwindSafe

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.