Trait rocket::mtls::oid::asn1_rs::nom::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;
}
Available on crate feature mtls only.
Expand description

Helper trait to show a byte slice as a hex dump

Required Methods§

source

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

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

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

source§

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

source§

impl HexDisplay for [u8]

source§

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

source§

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

Implementors§