Trait Hex

Source
pub trait Hex: Sized {
    // Required methods
    fn encode_hex(&self) -> String;
    fn decode_hex(hex: &str) -> Result<Self>;

    // Provided method
    fn encode_hex_with_quotes(&self) -> String { ... }
}

Required Methods§

Source

fn encode_hex(&self) -> String

Source

fn decode_hex(hex: &str) -> Result<Self>

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§