pub struct SlicePool<T: Send> { /* private fields */ }
Expand description
A thread-safe interface for allocating chunks in an owned slice.
Constructs a new owned slice pool from a sliceable object.
Allocates a new slice from the pool.
Returns the address of the underlying slice.
Returns the size of the underlying slice.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.