[][src]Struct tokenizers::utils::iter::ResultShunt

pub struct ResultShunt<I, E> { /* fields omitted */ }

Methods

impl<I, T, E> ResultShunt<I, E> where
    I: Iterator<Item = Result<T, E>>, 
[src]

pub fn process<F, U>(iter: I, f: F) -> Result<U, E> where
    F: FnMut(&mut Self) -> U, 
[src]

Process the given iterator as if it yielded a T instead of a Result<T, _>. Any errors will stop the inner iterator and the overall result will be an error.

Trait Implementations

impl<I, T, E> Iterator for ResultShunt<I, E> where
    I: Iterator<Item = Result<T, E>>, 
[src]

type Item = T

The type of the elements being iterated over.

Auto Trait Implementations

impl<I, E> RefUnwindSafe for ResultShunt<I, E> where
    E: RefUnwindSafe,
    I: RefUnwindSafe

impl<I, E> Send for ResultShunt<I, E> where
    E: Send,
    I: Send

impl<I, E> Sync for ResultShunt<I, E> where
    E: Sync,
    I: Sync

impl<I, E> Unpin for ResultShunt<I, E> where
    E: Unpin,
    I: Unpin

impl<I, E> UnwindSafe for ResultShunt<I, E> where
    E: UnwindSafe,
    I: UnwindSafe

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<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T> ParallelBridge for T where
    T: Send + Iterator,
    <T as Iterator>::Item: Send
[src]

impl<S, T> ProgressIterator for T where
    T: Iterator<Item = S>, 
[src]

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.

impl<I> UnicodeNormalization<I> for I where
    I: Iterator<Item = char>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,