Trait winnow::stream::HexDisplay

source ·
pub trait HexDisplay {
    // Required methods
    fn to_hex(&self, chunk_size: usize) -> String;
    fn to_hex_from(&self, chunk_size: usize, from: usize) -> String;
}
👎Deprecated since 0.3.0: Replaced with <code>Debug</code> (see <code>Bytes</code> and <code>BStr</code>
Expand description

Deprecated, replaced with Debug, particularly Bytes and BStr

Required Methods§

source

fn to_hex(&self, chunk_size: usize) -> String

👎Deprecated since 0.3.0: Replaced with <code>Debug</code> (see <code>Bytes</code> and <code>BStr</code>

Converts the value of self to a hex dump, returning the owned String.

source

fn to_hex_from(&self, chunk_size: usize, from: usize) -> String

👎Deprecated since 0.3.0: Replaced with <code>Debug</code> (see <code>Bytes</code> and <code>BStr</code>

Converts the value of self to a hex dump beginning at from address, returning the owned String.

Implementations on Foreign Types§

source§

impl HexDisplay for &str

source§

fn to_hex(&self, chunk_size: usize) -> String

👎Deprecated since 0.3.0: Replaced with <code>Debug</code> (see <code>Bytes</code> and <code>BStr</code>
source§

fn to_hex_from(&self, chunk_size: usize, from: usize) -> String

👎Deprecated since 0.3.0: Replaced with <code>Debug</code> (see <code>Bytes</code> and <code>BStr</code>
source§

impl HexDisplay for &[u8]

source§

fn to_hex(&self, chunk_size: usize) -> String

👎Deprecated since 0.3.0: Replaced with <code>Debug</code> (see <code>Bytes</code> and <code>BStr</code>
source§

fn to_hex_from(&self, chunk_size: usize, from: usize) -> String

👎Deprecated since 0.3.0: Replaced with <code>Debug</code> (see <code>Bytes</code> and <code>BStr</code>

Implementors§

source§

impl<I> HexDisplay for Located<I>where I: HexDisplay,

source§

impl<I> HexDisplay for Partial<I>where I: HexDisplay,

source§

impl<I, S> HexDisplay for Stateful<I, S>where I: HexDisplay,