Trait bitcoin_hashes::hex::FromHex
source · 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§
sourcefn from_byte_iter<I>(iter: I) -> Result<Self, Error>where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
fn from_byte_iter<I>(iter: I) -> Result<Self, Error>where I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
Produces an object from a byte iterator.