[][src]Struct minimum::slab::KeyedRcSlab

pub struct KeyedRcSlab<KeyT: Eq + Hash, ValueT> { /* fields omitted */ }

Methods

impl<KeyT: Eq + Hash, ValueT> KeyedRcSlab<KeyT, ValueT>[src]

pub fn new() -> Self[src]

pub fn allocate(&mut self, key: KeyT, value: ValueT) -> RcSlabEntry<ValueT>[src]

pub fn allocate_with<F: FnOnce() -> ValueT>(
    &mut self,
    key: KeyT,
    insert_fn: F
) -> RcSlabEntry<ValueT>
[src]

pub fn get(&self, slab_entry: &RcSlabEntry<ValueT>) -> &ValueT[src]

pub fn get_mut(&mut self, slab_entry: &RcSlabEntry<ValueT>) -> &mut ValueT[src]

pub fn find(&self, key: &KeyT) -> Option<RcSlabEntry<ValueT>>[src]

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

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

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

pub fn update(&mut self)[src]

Auto Trait Implementations

impl<KeyT, ValueT> Unpin for KeyedRcSlab<KeyT, ValueT> where
    KeyT: Unpin,
    ValueT: Unpin

impl<KeyT, ValueT> Sync for KeyedRcSlab<KeyT, ValueT> where
    KeyT: Sync,
    ValueT: Send + Sync

impl<KeyT, ValueT> Send for KeyedRcSlab<KeyT, ValueT> where
    KeyT: Send,
    ValueT: Send + Sync

impl<KeyT, ValueT> RefUnwindSafe for KeyedRcSlab<KeyT, ValueT> where
    KeyT: RefUnwindSafe,
    ValueT: RefUnwindSafe

impl<KeyT, ValueT> UnwindSafe for KeyedRcSlab<KeyT, ValueT> where
    KeyT: UnwindSafe,
    ValueT: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<T> Resource for T where
    T: Any + Send + Sync
[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.

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

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

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

impl<T> Any for T where
    T: Any
[src]

impl<T> Erased for T