pub struct WeakBytes { /* private fields */ }
Expand description
Weak variant of Bytes that doesn’t retain the data unless a strong Bytes is referencing it.
The referenced subrange of the Bytes is reconstructed on WeakBytes::upgrade.
Implementations§
Auto Trait Implementations§
impl Freeze for WeakBytes
impl !RefUnwindSafe for WeakBytes
impl !Send for WeakBytes
impl !Sync for WeakBytes
impl Unpin for WeakBytes
impl !UnwindSafe for WeakBytes
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