Trait to_string::HexaDisplay [] [src]

pub trait HexaDisplay {
    fn to_hexa_string(&self) -> String;

    fn to_hexa(&self) -> String { ... }
}

Required Methods

use to_string::HexaDisplay;
assert_eq!("0x12", 0x12.to_hexa_string());
assert_eq!("0xffffffee", (-0x12).to_hexa_string())

Provided Methods

use to_string::HexaDisplay;
assert_eq!("0x12", 0x12.to_hexa());
assert_eq!("0xffffffee", (-0x12).to_hexa())

Implementors