Struct display_bytes::FormatHex [] [src]

pub struct FormatHex<'s> {
    pub prefix: &'s str,
    pub separator: &'s str,
    pub uppercase: bool,
}

Formats bytes in hexadecimal pairs (00 - FF).

Fields

The prefix, if any, for each byte.

The separator for individual hex-formatted bytes.

Whether or not to write the hex-pairs in uppercase

Trait Implementations

impl<'s> Copy for FormatHex<'s>
[src]

impl<'s> Clone for FormatHex<'s>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'s> Debug for FormatHex<'s>
[src]

Formats the value using the given formatter.

impl<'s> ByteFormat for FormatHex<'s>
[src]

Encode the given byte-sequence in some human-readable format and print it to f.

Uses fmt_bytes() to encode the byte-sequence and print it to a String. Read more