Trait ToHex
trait ToHex
Encoding values as hex string.
This trait is implemented for all T which implement AsRef<[u8]>. This
includes String, str, Vec<u8> and [u8].
Example
use ToHex;
println!;
# assert_eq!;
Note: instead of using this trait, you might want to use [encode()].
Required Methods
fn encode_hex<T: iter::FromIterator<char>>(self: &Self) -> TEncode the hex strict representing
selfinto the result. Lower case letters are used (e.g.f9b4ca)fn encode_hex_upper<T: iter::FromIterator<char>>(self: &Self) -> TEncode the hex strict representing
selfinto the result. Upper case letters are used (e.g.F9B4CA)
Implementors
impl<T: AsRef<[u8]>> ToHex for T