pub struct Block<'a, T: Poolable = Vec<u8>> { /* private fields */ }
Expand description
The value returned by an allocation of the pool. When it is dropped the memory gets returned into the pool, and is not zeroed. If that is a concern, you must clear the data yourself.
Implementations§
Trait Implementations§
impl<'a, T: StableDeref + Poolable> StableDeref for Block<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Block<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for Block<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Block<'a, T>where
T: Send,
impl<'a, T> Sync for Block<'a, T>
impl<'a, T> Unpin for Block<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for Block<'a, 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