pub trait ToHex {
// Required methods
fn encode_hex<T: FromIterator<char>>(&self) -> T;
fn encode_hex_upper<T: FromIterator<char>>(&self) -> T;
}
Expand description
Required Methods§
Sourcefn encode_hex<T: FromIterator<char>>(&self) -> T
fn encode_hex<T: FromIterator<char>>(&self) -> T
Encode the hex strict representing self
into the result. Lower case
letters are used (e.g. f9b4ca
)
Sourcefn encode_hex_upper<T: FromIterator<char>>(&self) -> T
fn encode_hex_upper<T: FromIterator<char>>(&self) -> T
Encode the hex strict representing self
into the result. Upper case
letters are used (e.g. F9B4CA
)
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.