Struct format_bytes::Utf8[][src]

pub struct Utf8<Inner>(pub Inner);

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]

Auto Trait Implementations

impl<Inner> RefUnwindSafe for Utf8<Inner> where
    Inner: RefUnwindSafe
[src]

impl<Inner> Send for Utf8<Inner> where
    Inner: Send
[src]

impl<Inner> Sync for Utf8<Inner> where
    Inner: Sync
[src]

impl<Inner> Unpin for Utf8<Inner> where
    Inner: Unpin
[src]

impl<Inner> UnwindSafe for Utf8<Inner> where
    Inner: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.