pub struct AsciiStr<T>(pub T);
Expand description
A wrapper around anything that dereferences to a byte slice ([u8]
) that displays it’s
contents as a string using rust-like (& c-like) escapes for non ascii characters
The entire thing is wrapped in double quotes (“) and any interior double quotes are escaped as ‘"’
Tuple Fields§
§0: T
Trait Implementations§
impl<T: Eq> Eq for AsciiStr<T>
impl<T> StructuralPartialEq for AsciiStr<T>
Auto Trait Implementations§
impl<T> Freeze for AsciiStr<T>where
T: Freeze,
impl<T> RefUnwindSafe for AsciiStr<T>where
T: RefUnwindSafe,
impl<T> Send for AsciiStr<T>where
T: Send,
impl<T> Sync for AsciiStr<T>where
T: Sync,
impl<T> Unpin for AsciiStr<T>where
T: Unpin,
impl<T> UnwindSafe for AsciiStr<T>where
T: UnwindSafe,
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