Trait nu_pretty_hex::PrettyHex[][src]

pub trait PrettyHex: Sized {
    fn hex_dump(&self) -> Hex<'_, Self>;
fn hex_conf(&self, cfg: HexConfig) -> Hex<'_, Self>; }
Expand description

Allows generates hex dumps to a formatter.

Required methods

fn hex_dump(&self) -> Hex<'_, Self>[src]

Wrap self reference for use in std::fmt::Display and std::fmt::Debug formatting as hex dumps.

fn hex_conf(&self, cfg: HexConfig) -> Hex<'_, Self>[src]

Wrap self reference for use in std::fmt::Display and std::fmt::Debug formatting as hex dumps in specified format.

Implementors

impl<T> PrettyHex for T where
    T: AsRef<[u8]>, 
[src]

fn hex_dump(&self) -> Hex<'_, Self>[src]

fn hex_conf(&self, cfg: HexConfig) -> Hex<'_, Self>[src]