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§
fn encode_hex(&self) -> String
fn decode_hex(hex: &str) -> Result<Self>
Provided Methods§
fn encode_hex_with_quotes(&self) -> String
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.