SlabSlab

Struct SlabSlab 

Source
pub struct SlabSlab<Item> { /* private fields */ }
Expand description

Holder

Trait Implementations§

Source§

impl<Item: Debug> Debug for SlabSlab<Item>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Item> Slabbable<SlabSlab<Item>, Item> for SlabSlab<Item>
where Item: Debug + Clone,

Source§

fn with_fixed_capacity(cap: usize) -> Result<Self, Self::Error>

See trait

Source§

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>

See trait

Source§

fn take_next_with(&mut self, with: Item) -> Result<usize, Self::Error>

See trait

Source§

fn mark_for_reuse(&mut self, slot: usize) -> Result<Item, Self::Error>

See trait

Source§

fn slot_get_ref(&self, slot: usize) -> Result<Option<&Item>, Self::Error>

See trait

Source§

fn slot_get_mut( &mut self, slot: usize, ) -> Result<Option<&mut Item>, Self::Error>

See trait

Source§

fn capacity(&self) -> usize

See trait

Source§

fn remaining(&self) -> Option<usize>

See trait

Source§

fn reap(&mut self) -> Option<usize>

See trait

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.