[][src]Trait pretty_hex::PrettyHex

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

Allows generates hex dumps to a formatter.

Required methods

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

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>

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

Loading content...

Implementors

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

Loading content...