Trait format_bytes::DisplayBytes[][src]

pub trait DisplayBytes {
    fn display_bytes(&self, output: &mut dyn Write) -> Result<()>;
}

Let types decide how to format themselves for presentation to users in a byte-stream output.

Similar to std::fmt::Display, but the output stream is bytes instead of Unicode.

When output is presented to users, it is decoded with an unspecified character encoding that is presumed to be ASCII-compatible.

Implementers should return any error from output (e.g. with the ? operator), and not emit other errors.

Required methods

fn display_bytes(&self, output: &mut dyn Write) -> Result<()>[src]

Loading content...

Implementations on Foreign Types

impl<Inner: ?Sized + DisplayBytes> DisplayBytes for &Inner[src]

Forward to the inner type.

impl<Inner: ?Sized + DisplayBytes> DisplayBytes for &mut Inner[src]

Forward to the inner type.

impl<Inner: ?Sized + DisplayBytes> DisplayBytes for Box<Inner>[src]

Forward to the inner type.

impl<Inner: ?Sized + DisplayBytes> DisplayBytes for Rc<Inner>[src]

Forward to the inner type.

impl<Inner: ?Sized + DisplayBytes> DisplayBytes for Arc<Inner>[src]

Forward to the inner type.

impl DisplayBytes for [u8][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for Vec<u8>[src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 0][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 1][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 2][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 3][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 4][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 5][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 6][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 7][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 8][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 9][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 10][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 11][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 12][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 13][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 14][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 15][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 16][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 17][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 18][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 19][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 20][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 21][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 22][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 23][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 24][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 25][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 26][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 27][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 28][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 29][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 30][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 31][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 32][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 33][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 34][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 35][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 36][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 37][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 38][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 39][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 40][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 41][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 42][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 43][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 44][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 45][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 46][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 47][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 48][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 49][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 50][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 51][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 52][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 53][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 54][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 55][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 56][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 57][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 58][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 59][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 60][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 61][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 62][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 63][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for [u8; 64][src]

Byte strings are "formatted" as-is.

impl DisplayBytes for u8[src]

Format to ASCII bytes with std::fmt::Display.

The Display impl for this type only emits ASCII characters, so it’s less useful than in the general case to make users explicitly opt-in to UTF-8 encoding.

impl DisplayBytes for u16[src]

Format to ASCII bytes with std::fmt::Display.

The Display impl for this type only emits ASCII characters, so it’s less useful than in the general case to make users explicitly opt-in to UTF-8 encoding.

impl DisplayBytes for u32[src]

Format to ASCII bytes with std::fmt::Display.

The Display impl for this type only emits ASCII characters, so it’s less useful than in the general case to make users explicitly opt-in to UTF-8 encoding.

impl DisplayBytes for u64[src]

Format to ASCII bytes with std::fmt::Display.

The Display impl for this type only emits ASCII characters, so it’s less useful than in the general case to make users explicitly opt-in to UTF-8 encoding.

impl DisplayBytes for u128[src]

Format to ASCII bytes with std::fmt::Display.

The Display impl for this type only emits ASCII characters, so it’s less useful than in the general case to make users explicitly opt-in to UTF-8 encoding.

impl DisplayBytes for usize[src]

Format to ASCII bytes with std::fmt::Display.

The Display impl for this type only emits ASCII characters, so it’s less useful than in the general case to make users explicitly opt-in to UTF-8 encoding.

impl DisplayBytes for i8[src]

Format to ASCII bytes with std::fmt::Display.

The Display impl for this type only emits ASCII characters, so it’s less useful than in the general case to make users explicitly opt-in to UTF-8 encoding.

impl DisplayBytes for i16[src]

Format to ASCII bytes with std::fmt::Display.

The Display impl for this type only emits ASCII characters, so it’s less useful than in the general case to make users explicitly opt-in to UTF-8 encoding.

impl DisplayBytes for i32[src]

Format to ASCII bytes with std::fmt::Display.

The Display impl for this type only emits ASCII characters, so it’s less useful than in the general case to make users explicitly opt-in to UTF-8 encoding.

impl DisplayBytes for i64[src]

Format to ASCII bytes with std::fmt::Display.

The Display impl for this type only emits ASCII characters, so it’s less useful than in the general case to make users explicitly opt-in to UTF-8 encoding.

impl DisplayBytes for i128[src]

Format to ASCII bytes with std::fmt::Display.

The Display impl for this type only emits ASCII characters, so it’s less useful than in the general case to make users explicitly opt-in to UTF-8 encoding.

impl DisplayBytes for isize[src]

Format to ASCII bytes with std::fmt::Display.

The Display impl for this type only emits ASCII characters, so it’s less useful than in the general case to make users explicitly opt-in to UTF-8 encoding.

impl DisplayBytes for f32[src]

Format to ASCII bytes with std::fmt::Display.

The Display impl for this type only emits ASCII characters, so it’s less useful than in the general case to make users explicitly opt-in to UTF-8 encoding.

impl DisplayBytes for f64[src]

Format to ASCII bytes with std::fmt::Display.

The Display impl for this type only emits ASCII characters, so it’s less useful than in the general case to make users explicitly opt-in to UTF-8 encoding.

Loading content...

Implementors

impl<Inner: Display> DisplayBytes for Utf8<Inner>[src]

Loading content...