[][src]Struct typed_slab::TypedSlab

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

Implementations

impl<K, V> TypedSlab<K, V> where
    K: From<usize> + Into<usize>, 
[src]

pub fn new() -> Self[src]

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

pub fn insert_entry(&mut self, value: V) -> (K, &mut V)[src]

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

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

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

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

pub fn iter(&self) -> impl Iterator<Item = (K, &V)>[src]

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

Auto Trait Implementations

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

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

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

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

impl<K, V> UnwindSafe for TypedSlab<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.