pub struct FixedSlab<T> { /* private fields */ }Implementations§
Source§impl<T> FixedSlab<T>
impl<T> FixedSlab<T>
pub fn with_capacity(cap: usize) -> Self
pub fn len(&self) -> usize
pub fn capacity(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_full(&self) -> bool
pub fn insert(&mut self, value: T) -> usize
pub fn remove(&mut self, key: usize) -> T
pub fn get_mut(&mut self, key: usize) -> Option<&mut T>
Auto Trait Implementations§
impl<T> Freeze for FixedSlab<T>
impl<T> RefUnwindSafe for FixedSlab<T>where
T: RefUnwindSafe,
impl<T> Send for FixedSlab<T>where
T: Send,
impl<T> Sync for FixedSlab<T>where
T: Sync,
impl<T> Unpin for FixedSlab<T>where
T: Unpin,
impl<T> UnwindSafe for FixedSlab<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more