IntoHex

Trait IntoHex 

Source
pub trait IntoHex {
    // Required method
    fn to_hex(&self) -> String;

    // Provided method
    fn into_hex(self) -> String
       where Self: Sized { ... }
}
Expand description

Type implementing this trait can be encoded into a hex string.

Required Methods§

Source

fn to_hex(&self) -> String

Provided Methods§

Source

fn into_hex(self) -> String
where Self: Sized,

Implementations on Foreign Types§

Source§

impl IntoHex for &[u8]

Source§

fn to_hex(&self) -> String

Implementors§