pub trait TryFromHexwhere
    Self: Sized,{
    // Required method
    fn try_from_hex<H>(hex: H) -> Result<Self>
       where H: AsRef<str>;
}
Expand description

Simple and safe T/AsRef<str> conversions that may fail in a controlled way under some circumstances.

Required Methods§

source

fn try_from_hex<H>(hex: H) -> Result<Self>where H: AsRef<str>,

Try to convert the Self from hex.

Implementations on Foreign Types§

source§

impl TryFromHex for i128

source§

fn try_from_hex<H>(hex: H) -> Result<Self>where H: AsRef<str>,

source§

impl TryFromHex for u8

source§

fn try_from_hex<H>(hex: H) -> Result<Self>where H: AsRef<str>,

source§

impl TryFromHex for i16

source§

fn try_from_hex<H>(hex: H) -> Result<Self>where H: AsRef<str>,

source§

impl TryFromHex for u128

source§

fn try_from_hex<H>(hex: H) -> Result<Self>where H: AsRef<str>,

source§

impl TryFromHex for i8

source§

fn try_from_hex<H>(hex: H) -> Result<Self>where H: AsRef<str>,

source§

impl TryFromHex for u64

source§

fn try_from_hex<H>(hex: H) -> Result<Self>where H: AsRef<str>,

source§

impl TryFromHex for i64

source§

fn try_from_hex<H>(hex: H) -> Result<Self>where H: AsRef<str>,

source§

impl TryFromHex for usize

source§

fn try_from_hex<H>(hex: H) -> Result<Self>where H: AsRef<str>,

source§

impl TryFromHex for u16

source§

fn try_from_hex<H>(hex: H) -> Result<Self>where H: AsRef<str>,

source§

impl TryFromHex for i32

source§

fn try_from_hex<H>(hex: H) -> Result<Self>where H: AsRef<str>,

source§

impl TryFromHex for isize

source§

fn try_from_hex<H>(hex: H) -> Result<Self>where H: AsRef<str>,

source§

impl TryFromHex for u32

source§

fn try_from_hex<H>(hex: H) -> Result<Self>where H: AsRef<str>,

Implementors§