Trait exonum::encoding::serialize::HexValue
[−]
[src]
pub trait HexValue: Sized { fn to_hex(&self) -> String; fn from_hex<T: AsRef<str>>(v: T) -> Result<Self, FromHexError>; }
HexValue
is a converting trait,
for values that could be converted from hex String
,
and writed as hex String
Required Methods
fn to_hex(&self) -> String
Format value as hex representation.
fn from_hex<T: AsRef<str>>(v: T) -> Result<Self, FromHexError>
Convert value from hex representation.