Trait breez_sdk_liquid::bitcoin::util::key::secp256k1::hashes::hex::FromHex

pub trait FromHex: Sized {
    // Required method
    fn from_byte_iter<I>(iter: I) -> Result<Self, Error>
       where I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator;

    // Provided method
    fn from_hex(s: &str) -> Result<Self, Error> { ... }
}
Expand description

Trait for objects that can be deserialized from hex strings.

Required Methods§

fn from_byte_iter<I>(iter: I) -> Result<Self, Error>

Produces an object from a byte iterator.

Provided Methods§

fn from_hex(s: &str) -> Result<Self, Error>

Produces an object from a hex string.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl FromHex for Vec<u8>

§

impl FromHex for [u8; 2]

§

impl FromHex for [u8; 4]

§

impl FromHex for [u8; 6]

§

impl FromHex for [u8; 8]

§

impl FromHex for [u8; 10]

§

impl FromHex for [u8; 12]

§

impl FromHex for [u8; 14]

§

impl FromHex for [u8; 16]

§

impl FromHex for [u8; 20]

§

impl FromHex for [u8; 24]

§

impl FromHex for [u8; 28]

§

impl FromHex for [u8; 32]

§

impl FromHex for [u8; 33]

§

impl FromHex for [u8; 64]

§

impl FromHex for [u8; 65]

§

impl FromHex for [u8; 128]

§

impl FromHex for [u8; 256]

§

impl FromHex for [u8; 384]

§

impl FromHex for [u8; 512]

Implementors§

§

impl FromHex for ChainHash

§

impl FromHex for Script

§

impl FromHex for ChainCode

§

impl FromHex for Fingerprint

§

impl FromHex for ShortId

§

impl FromHex for Midstate

§

impl<T> FromHex for T
where T: Hash,