Trait nom::HexDisplay[][src]

pub trait HexDisplay {
    fn to_hex(&self, chunk_size: usize) -> String;
fn to_hex_from(&self, chunk_size: usize, from: usize) -> String; }
This is supported on crate feature std only.

Helper trait to show a byte slice as a hex dump

Required methods

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

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

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

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

Loading content...

Implementations on Foreign Types

impl HexDisplay for [u8][src]

impl HexDisplay for str[src]

Loading content...

Implementors

Loading content...