pub struct SlabSlab<Item> { /* private fields */ }Expand description
Holder
Trait Implementations§
Source§impl<Item> Slabbable<SlabSlab<Item>, Item> for SlabSlab<Item>
impl<Item> Slabbable<SlabSlab<Item>, Item> for SlabSlab<Item>
Source§fn reserve_next(&mut self) -> Result<ReservedSlot, Self::Error>
fn reserve_next(&mut self) -> Result<ReservedSlot, Self::Error>
See trait
Source§fn take_reserved_with(
&mut self,
r_slot: ReservedSlot,
with: Item,
) -> Result<usize, Self::Error>
fn take_reserved_with( &mut self, r_slot: ReservedSlot, with: Item, ) -> Result<usize, Self::Error>
See trait
Source§fn slot_get_mut(
&mut self,
slot: usize,
) -> Result<Option<&mut Item>, Self::Error>
fn slot_get_mut( &mut self, slot: usize, ) -> Result<Option<&mut Item>, Self::Error>
See trait
Source§type Error = SlabbableError
type Error = SlabbableError
Error
Auto Trait Implementations§
impl<Item> Freeze for SlabSlab<Item>
impl<Item> RefUnwindSafe for SlabSlab<Item>where
Item: RefUnwindSafe,
impl<Item> Send for SlabSlab<Item>where
Item: Send,
impl<Item> Sync for SlabSlab<Item>where
Item: Sync,
impl<Item> Unpin for SlabSlab<Item>where
Item: Unpin,
impl<Item> UnwindSafe for SlabSlab<Item>where
Item: 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