pub(crate) enum BytesInner<'a> {
    Owned(Vec<u8>),
    Borrowed(&'a [u8]),
}Variants§
Implementations§
Source§impl BytesInner<'_>
 
impl BytesInner<'_>
pub(crate) fn into_owned(self) -> BytesInner<'static>
Trait Implementations§
Source§impl AsRef<[u8]> for BytesInner<'_>
 
impl AsRef<[u8]> for BytesInner<'_>
Source§impl<'a> Clone for BytesInner<'a>
 
impl<'a> Clone for BytesInner<'a>
Source§fn clone(&self) -> BytesInner<'a>
 
fn clone(&self) -> BytesInner<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl<'a> Debug for BytesInner<'a>
 
impl<'a> Debug for BytesInner<'a>
Source§impl Hash for BytesInner<'_>
 
impl Hash for BytesInner<'_>
Source§impl PartialEq for BytesInner<'_>
 
impl PartialEq for BytesInner<'_>
Source§impl Zeroize for BytesInner<'static>
 
impl Zeroize for BytesInner<'static>
impl Eq for BytesInner<'_>
Auto Trait Implementations§
impl<'a> Freeze for BytesInner<'a>
impl<'a> RefUnwindSafe for BytesInner<'a>
impl<'a> Send for BytesInner<'a>
impl<'a> Sync for BytesInner<'a>
impl<'a> Unpin for BytesInner<'a>
impl<'a> UnwindSafe for BytesInner<'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