struct BytesRef<'a>(&'a [u8]);
Expand description
BytesRef
is not a part of public API of bytes crate.
Tuple Fields§
§0: &'a [u8]
Trait Implementations§
source§impl Debug for BytesRef<'_>
impl Debug for BytesRef<'_>
Alternative implementation of std::fmt::Debug
for byte slice.
Standard Debug
implementation for [u8]
is comma separated
list of numbers. Since large amount of byte strings are in fact
ASCII strings or contain a lot of ASCII strings (e. g. HTTP),
it is convenient to print strings as ASCII when possible.
Auto Trait Implementations§
impl<'a> Freeze for BytesRef<'a>
impl<'a> RefUnwindSafe for BytesRef<'a>
impl<'a> Send for BytesRef<'a>
impl<'a> Sync for BytesRef<'a>
impl<'a> Unpin for BytesRef<'a>
impl<'a> UnwindSafe for BytesRef<'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