Trait ToHex

Source
pub trait ToHex {
    // Required method
    fn to_hex(&self) -> String;
}
Expand description

A trait for converting a value to hexadecimal encoding

Required Methods§

Source

fn to_hex(&self) -> String

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

Implementations on Foreign Types§

Source§

impl ToHex for [u8]

Source§

fn to_hex(&self) -> String

Implementors§