[−][src]Struct minimum::slab::KeyedRcSlab
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]
&mut self,
key: KeyT,
insert_fn: F
) -> RcSlabEntry<ValueT>
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,
KeyT: Unpin,
ValueT: Unpin,
impl<KeyT, ValueT> Sync for KeyedRcSlab<KeyT, ValueT> where
KeyT: Sync,
ValueT: Send + Sync,
KeyT: Sync,
ValueT: Send + Sync,
impl<KeyT, ValueT> Send for KeyedRcSlab<KeyT, ValueT> where
KeyT: Send,
ValueT: Send + Sync,
KeyT: Send,
ValueT: Send + Sync,
impl<KeyT, ValueT> RefUnwindSafe for KeyedRcSlab<KeyT, ValueT> where
KeyT: RefUnwindSafe,
ValueT: RefUnwindSafe,
KeyT: RefUnwindSafe,
ValueT: RefUnwindSafe,
impl<KeyT, ValueT> UnwindSafe for KeyedRcSlab<KeyT, ValueT> where
KeyT: UnwindSafe,
ValueT: RefUnwindSafe + UnwindSafe,
KeyT: UnwindSafe,
ValueT: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,