Struct format_bytes::Utf8 [−][src]
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");
Trait Implementations
impl<Inner: Display> DisplayBytes for Utf8<Inner>
[src]
fn display_bytes(&self, output: &mut dyn Write) -> Result<()>
[src]
Auto Trait Implementations
impl<Inner> RefUnwindSafe for Utf8<Inner> where
Inner: RefUnwindSafe,
[src]
Inner: RefUnwindSafe,
impl<Inner> Send for Utf8<Inner> where
Inner: Send,
[src]
Inner: Send,
impl<Inner> Sync for Utf8<Inner> where
Inner: Sync,
[src]
Inner: Sync,
impl<Inner> Unpin for Utf8<Inner> where
Inner: Unpin,
[src]
Inner: Unpin,
impl<Inner> UnwindSafe for Utf8<Inner> where
Inner: UnwindSafe,
[src]
Inner: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,