pub enum Storage<'a> {
Shared(&'a [u8]),
Unique(&'a mut [u8]),
Owned(Vec<u8>),
}
Expand description
A buffer type used for implementing Extension
s.
Variants§
A read-only shared byte slice.
Unique(&'a mut [u8])
A mutable byte slice.
Owned(Vec<u8>)
An owned byte buffer.
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Storage<'a>
impl<'a> Send for Storage<'a>
impl<'a> Sync for Storage<'a>
impl<'a> Unpin for Storage<'a>
impl<'a> !UnwindSafe for Storage<'a>
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