[−]Trait btcpay::FromHex
Trait for objects that can be deserialized from hex strings
Required methods
fn from_byte_iter<I>(iter: I) -> Result<Self, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
Produce an object from a byte iterator
Provided methods
Loading content...Implementations on Foreign Types
impl FromHex for ChainCode
[src]
fn from_byte_iter<I>(iter: I) -> Result<ChainCode, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
[src]
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for Fingerprint
[src]
fn from_byte_iter<I>(iter: I) -> Result<Fingerprint, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
[src]
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for [u8; 6]
fn from_byte_iter<I>(iter: I) -> Result<[u8; 6], Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for [u8; 33]
fn from_byte_iter<I>(iter: I) -> Result<[u8; 33], Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for [u8; 32]
fn from_byte_iter<I>(iter: I) -> Result<[u8; 32], Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for [u8; 384]
fn from_byte_iter<I>(iter: I) -> Result<[u8; 384], Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for [u8; 4]
fn from_byte_iter<I>(iter: I) -> Result<[u8; 4], Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for [u8; 2]
fn from_byte_iter<I>(iter: I) -> Result<[u8; 2], Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for [u8; 64]
fn from_byte_iter<I>(iter: I) -> Result<[u8; 64], Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for [u8; 65]
fn from_byte_iter<I>(iter: I) -> Result<[u8; 65], Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for [u8; 256]
fn from_byte_iter<I>(iter: I) -> Result<[u8; 256], Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for [u8; 12]
fn from_byte_iter<I>(iter: I) -> Result<[u8; 12], Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for [u8; 128]
fn from_byte_iter<I>(iter: I) -> Result<[u8; 128], Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for [u8; 10]
fn from_byte_iter<I>(iter: I) -> Result<[u8; 10], Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for [u8; 512]
fn from_byte_iter<I>(iter: I) -> Result<[u8; 512], Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for Midstate
fn from_byte_iter<I>(iter: I) -> Result<Midstate, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for [u8; 14]
fn from_byte_iter<I>(iter: I) -> Result<[u8; 14], Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for [u8; 24]
fn from_byte_iter<I>(iter: I) -> Result<[u8; 24], Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for [u8; 28]
fn from_byte_iter<I>(iter: I) -> Result<[u8; 28], Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for [u8; 8]
fn from_byte_iter<I>(iter: I) -> Result<[u8; 8], Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for [u8; 16]
fn from_byte_iter<I>(iter: I) -> Result<[u8; 16], Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for [u8; 20]
fn from_byte_iter<I>(iter: I) -> Result<[u8; 20], Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
impl FromHex for Vec<u8>
fn from_byte_iter<I>(iter: I) -> Result<Vec<u8>, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
Implementors
impl<T> FromHex for T where
T: Hash,
T: Hash,
fn from_byte_iter<I>(iter: I) -> Result<T, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,