pub struct ByteBufFormatter<'a>(pub &'a [u8]);
Expand description
Falco-style byte buffer formatter
The default Debug
impl prints out the buffer as an ASCII string, replacing non-printable
characters with dots (.
).
The hex debug implementation ({:x?}
) generates a hex dump of the whole buffer.
Tuple Fields§
§0: &'a [u8]
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ByteBufFormatter<'a>
impl<'a> RefUnwindSafe for ByteBufFormatter<'a>
impl<'a> Send for ByteBufFormatter<'a>
impl<'a> Sync for ByteBufFormatter<'a>
impl<'a> Unpin for ByteBufFormatter<'a>
impl<'a> UnwindSafe for ByteBufFormatter<'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