Struct ruby_marshal::DisplayByteString
source · pub struct DisplayByteString<'a>(pub &'a [u8]);
Expand description
A utility to display a byte sequence as a string if it is UTF8 or a slice otherwise.
Tuple Fields§
§0: &'a [u8]
Trait Implementations§
source§impl<'a> Debug for DisplayByteString<'a>
impl<'a> Debug for DisplayByteString<'a>
Auto Trait Implementations§
impl<'a> Freeze for DisplayByteString<'a>
impl<'a> RefUnwindSafe for DisplayByteString<'a>
impl<'a> Send for DisplayByteString<'a>
impl<'a> Sync for DisplayByteString<'a>
impl<'a> Unpin for DisplayByteString<'a>
impl<'a> UnwindSafe for DisplayByteString<'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