[][src]Struct bitcoin_hashes::hex::HexIterator

pub struct HexIterator<'a> { /* fields omitted */ }

Iterator over a hex-encoded string slice which decodes hex and yields bytes.

Methods

impl<'a> HexIterator<'a>[src]

pub fn new(s: &'a str) -> Result<HexIterator<'a>, Error>[src]

Constructs a new HexIterator from a string slice. If the string is of odd length it returns an error.

Trait Implementations

impl<'a> DoubleEndedIterator for HexIterator<'a>[src]

impl<'a> ExactSizeIterator for HexIterator<'a>[src]

impl<'a> Iterator for HexIterator<'a>[src]

type Item = Result<u8, Error>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> RefUnwindSafe for HexIterator<'a>

impl<'a> Send for HexIterator<'a>

impl<'a> Sync for HexIterator<'a>

impl<'a> Unpin for HexIterator<'a>

impl<'a> UnwindSafe for HexIterator<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.