pub struct SlabBox<const N: usize, const SZ: usize> { /* fields omitted */ }
Expand description
An owned, BSlab allocated chunk of bytes.
SlabBox
s implement the Deref
and DerefMut
traits for access to
the underlying allocation
Convert the SlabBox
into a SlabArc
.
This loses the ability to mutate the data within the allocation, but the
may now be shared to multiple locations using reference counts
The resulting type after dereferencing.
Mutably dereferences the value.
Executes the destructor for this type. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.