Trait hex_conservative::parse::FromHex
source · pub trait FromHex: Sized {
type Err: From<HexToBytesError> + Sized + Debug + Display;
// Required method
fn from_byte_iter<I>(iter: I) -> Result<Self, Self::Err>
where I: Iterator<Item = Result<u8, HexToBytesError>> + ExactSizeIterator + DoubleEndedIterator;
// Provided method
fn from_hex(s: &str) -> Result<Self, Self::Err> { ... }
}
Expand description
Trait for objects that can be deserialized from hex strings.
Required Associated Types§
Required Methods§
sourcefn from_byte_iter<I>(iter: I) -> Result<Self, Self::Err>
fn from_byte_iter<I>(iter: I) -> Result<Self, Self::Err>
Produces an object from a byte iterator.
Provided Methods§
Object Safety§
This trait is not object safe.