[][src]Struct imex::IMExIter

pub struct IMExIter<T, I> where
    T: Iterator<Item = I>, 
{ /* fields omitted */ }

An iterator that lazily merges other iterators using an IMEx. The result of using the merge functions defined on the IMExMerges trait.

Implementations

impl<T, I> IMExIter<T, I> where
    T: Iterator<Item = I>, 
[src]

pub fn new(iters: Vec<T>, imex: &str) -> Result<Self>[src]

Constructs and IMExIter from a vector of iterators and an IMEx string.

Error

Results in an error if the provided IMEx is invalid.

Example

use imex::IMExIter;

let imex_iter = IMExIter::new(vec!["1234".chars(), "abcde".chars()], "(001)*")
    .expect("Invalid IMEx");
let merged = imex_iter
    .collect::<String>();

assert_eq!(merged, "12a34bcde");

Trait Implementations

impl<T, I> Iterator for IMExIter<T, I> where
    T: Iterator<Item = I>, 
[src]

type Item = I

The type of the elements being iterated over.

Auto Trait Implementations

impl<T, I> RefUnwindSafe for IMExIter<T, I> where
    T: RefUnwindSafe

impl<T, I> Send for IMExIter<T, I> where
    T: Send

impl<T, I> Sync for IMExIter<T, I> where
    T: Sync

impl<T, I> Unpin for IMExIter<T, I> where
    T: Unpin

impl<T, I> UnwindSafe for IMExIter<T, I> where
    T: 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<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.