[][src]Struct gluon_base::fixed::FixedMap

pub struct FixedMap<K, V> { /* fields omitted */ }

Implementations

impl<K: Eq + Hash, V> FixedMap<K, V>[src]

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

pub fn clear(&mut self)[src]

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

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

impl<K: Eq + Hash, V> FixedMap<K, V>[src]

pub fn insert(&mut self, key: K, value: V) -> Option<V>[src]

pub fn try_insert(&self, key: K, value: V) -> Result<(), (K, V)>[src]

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

pub fn get_mut<Q>(&mut self, k: &Q) -> Option<&mut V> where
    K: Borrow<Q>,
    Q: Eq + Hash
[src]

pub fn remove<Q>(&mut self, key: &Q) where
    K: Borrow<Q>,
    Q: Eq + Hash
[src]

Trait Implementations

impl<K: Eq + Hash + Debug, V: Debug> Debug for FixedMap<K, V>[src]

impl<K: Eq + Hash, V> Default for FixedMap<K, V>[src]

impl<'a, Q: ?Sized, K, V> Index<&'a Q> for FixedMap<K, V> where
    K: Eq + Hash + Borrow<Q>,
    Q: Eq + Hash
[src]

type Output = V

The returned type after indexing.

Auto Trait Implementations

impl<K, V> !RefUnwindSafe for FixedMap<K, V>

impl<K, V> Send for FixedMap<K, V> where
    K: Send,
    V: Send

impl<K, V> !Sync for FixedMap<K, V>

impl<K, V> Unpin for FixedMap<K, V> where
    K: Unpin,
    V: Unpin

impl<K, V> UnwindSafe for FixedMap<K, V> where
    K: UnwindSafe,
    V: UnwindSafe

Blanket Implementations

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

impl<Id> AsId<Id> for Id where
    Id: ?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.