pub struct PoolRef(/* private fields */);
Implementations§
source§impl PoolRef
impl PoolRef
pub fn move_in(self, buf: &mut BytesMut)
pub fn move_vec_in(self, buf: &mut BytesVec)
sourcepub fn buf_with_capacity(self, cap: usize) -> BytesMut
pub fn buf_with_capacity(self, cap: usize) -> BytesMut
Creates a new BytesMut
with the specified capacity.
sourcepub fn vec_with_capacity(self, cap: usize) -> BytesVec
pub fn vec_with_capacity(self, cap: usize) -> BytesVec
Creates a new BytesVec
with the specified capacity.
Trait Implementations§
source§impl PartialEq for PoolRef
impl PartialEq for PoolRef
impl Copy for PoolRef
impl Eq for PoolRef
Auto Trait Implementations§
impl Freeze for PoolRef
impl !RefUnwindSafe for PoolRef
impl !Send for PoolRef
impl !Sync for PoolRef
impl Unpin for PoolRef
impl !UnwindSafe for PoolRef
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