Trait nom::HexDisplay [] [src]

pub trait HexDisplay {
    fn offset(&self, second: &[u8]) -> usize;
    fn to_hex(&self, chunk_size: usize) -> String;
    fn to_hex_from(&self, chunk_size: usize, from: usize) -> String;
}

useful functions to calculate the offset between slices and show a hexdump of a slice

Required Methods

offset between the first byte of self and the first byte of the argument

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

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

Implementors