Struct regex_syntax::debug::Bytes
source · pub(crate) struct Bytes<'a>(pub(crate) &'a [u8]);
Expand description
A type that provides a human readable debug impl for arbitrary bytes.
This generally works best when the bytes are presumed to be mostly UTF-8, but will work for anything.
N.B. This is copied nearly verbatim from regex-automata. Sigh.
Tuple Fields§
§0: &'a [u8]
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Bytes<'a>
impl<'a> RefUnwindSafe for Bytes<'a>
impl<'a> Send for Bytes<'a>
impl<'a> Sync for Bytes<'a>
impl<'a> Unpin for Bytes<'a>
impl<'a> UnwindSafe for Bytes<'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