pub struct Utf8<Inner>(pub Inner);
Expand description
Adaptor for types that implement std::fmt::Display
. The Unicode output is encoded as UTF-8.
§Example
use format_bytes::{format_bytes, Utf8};
assert_eq!(format_bytes!(b"{}", Utf8("è_é")), b"\xc3\xa8_\xc3\xa9");
Tuple Fields§
§0: Inner
Trait Implementations§
Auto Trait Implementations§
impl<Inner> Freeze for Utf8<Inner>where
Inner: Freeze,
impl<Inner> RefUnwindSafe for Utf8<Inner>where
Inner: RefUnwindSafe,
impl<Inner> Send for Utf8<Inner>where
Inner: Send,
impl<Inner> Sync for Utf8<Inner>where
Inner: Sync,
impl<Inner> Unpin for Utf8<Inner>where
Inner: Unpin,
impl<Inner> UnwindSafe for Utf8<Inner>where
Inner: 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