pub trait ToHex {
// Required methods
fn encode_hex<T>(&self) -> T
where T: FromIterator<char>;
fn encode_hex_upper<T>(&self) -> T
where T: FromIterator<char>;
}
Expand description
Required Methods§
sourcefn encode_hex<T>(&self) -> Twhere
T: FromIterator<char>,
fn encode_hex<T>(&self) -> Twhere
T: FromIterator<char>,
Encode the hex strict representing self
into the result. Lower case
letters are used (e.g. f9b4ca
)
sourcefn encode_hex_upper<T>(&self) -> Twhere
T: FromIterator<char>,
fn encode_hex_upper<T>(&self) -> Twhere
T: FromIterator<char>,
Encode the hex strict representing self
into the result. Upper case
letters are used (e.g. F9B4CA
)
Object Safety§
This trait is not object safe.