pub trait PrettyHex: Sized {
    // Required methods
    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§

source

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

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

source

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.

Object Safety§

This trait is not object safe.

Implementors§

source§

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