Skip to main content

ToHex

Trait ToHex 

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

Trait for types that can render themselves as a hexadecimal string.

Required Methods§

Source

fn to_hex(&self) -> String

Returns the hexadecimal string representation of self.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToHex for &[u8]

Little endian format of full slice content (so string lengths are always even).

Source§

fn to_hex(&self) -> String

Source§

impl ToHex for Vec<u8>

Little endian format of full content (so string lengths are always even).

Source§

fn to_hex(&self) -> String

Implementors§