FromHexPrefixed

Trait FromHexPrefixed 

Source
pub trait FromHexPrefixed: Sized {
    // Required method
    fn from_hex_prefixed(hex: impl AsRef<str>) -> Result<Self, Error>;
}
Expand description

Tries to decode an hexadecimal encoded string with a 0x prefix.

Required Methods§

Source

fn from_hex_prefixed(hex: impl AsRef<str>) -> Result<Self, Error>

Tries to decode an hexadecimal encoded string with a 0x prefix.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromHexPrefixed for Box<[u8]>

Source§

impl FromHexPrefixed for Vec<u8>

Source§

impl<const N: usize> FromHexPrefixed for [u8; N]
where Self: FromHex,

Implementors§