Trait rustc_hex::ToHex [−][src]
pub trait ToHex { fn to_hex<T: FromIterator<char>>(&self) -> T; }
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 characaters.
Implementations on Foreign Types
impl ToHex for [u8]
[src]
impl ToHex for [u8]
fn to_hex<T: FromIterator<char>>(&self) -> T
[src]
fn to_hex<T: FromIterator<char>>(&self) -> T
Turn a vector of u8
bytes into a hexadecimal string.
Example
extern crate rustc_hex; use rustc_hex::ToHex; fn main () { let str: String = [52,32].to_hex(); println!("{}", str); }
impl<'a, T: ?Sized + ToHex> ToHex for &'a T
[src]
impl<'a, T: ?Sized + ToHex> ToHex for &'a T
fn to_hex<U: FromIterator<char>>(&self) -> U
[src]
fn to_hex<U: FromIterator<char>>(&self) -> U