[][src]Trait heim_common::utils::iter::ParseIterator

pub trait ParseIterator<I>: TryIterator<Item = I> where
    I: AsRef<str>, 
{ fn try_parse_next<R, E>(&mut self) -> Result<R>
    where
        R: FromStr<Err = E>,
        Error: From<E>
; }

Extension trait for all T: Iterator.

Used across the heim sub-crates only.

Required methods

fn try_parse_next<R, E>(&mut self) -> Result<R> where
    R: FromStr<Err = E>,
    Error: From<E>, 

Attempt to to parse next yielded element from the iterator.

Type R should implement std::str::FromStr trait in order to be able parsed from the iterator element.

Loading content...

Implementors

impl<T, I> ParseIterator<I> for T where
    T: TryIterator<Item = I>,
    I: AsRef<str>, 
[src]

Loading content...