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 copy 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 PartialEq for BytesInner<'_>
impl PartialEq for BytesInner<'_>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)