[−][src]Trait rustc_hex::ToHex
A trait for converting a value to hexadecimal encoding
Required methods
fn to_hex<T: FromIterator<char>>(&self) -> T
Converts the value of self
to a hex value, constructed from
an iterator of characters.
Implementations on Foreign Types
impl ToHex for [u8]
[src]
fn to_hex<T: FromIterator<char>>(&self) -> T
[src]
Turn a slice of u8
bytes into a hexadecimal string.
Example
use rustc_hex::ToHex; fn main () { let str: String = [52,32].to_hex(); println!("{}", str); }