pub enum StableBuf {
Vec(Vec<u8>),
BytesMut(BytesMut),
}Expand description
A buffer whose memory is stable as long as its not reallocated.
Variants§
Implementations§
Trait Implementations§
impl Eq for StableBuf
impl StructuralPartialEq for StableBuf
Auto Trait Implementations§
impl Freeze for StableBuf
impl RefUnwindSafe for StableBuf
impl Send for StableBuf
impl Sync for StableBuf
impl Unpin for StableBuf
impl UnwindSafe for StableBuf
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)