Struct format_bytes::Utf8[][src]

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.