Struct extsort_lily::ExtSortedIterator[][src]

pub struct ExtSortedIterator<T, R, W> { /* fields omitted */ }

The iterator type for producing results sorted by merge sort.

It produces Result<T, T::Error>s.

It can fail due to issues reading intermediate sorted chunks from disk, or due to deserialization issues.

The writer W is not actually used by this struct.

Implementations

impl<T, R, W> ExtSortedIterator<T, R, W> where
    T: Sortable<W, R>,
    W: Write,
    R: Read
[src]

pub fn new(readers: Vec<R>) -> Result<Self, T::Error>[src]

do merge sort on readers.

Trait Implementations

impl<T, R, W> Iterator for ExtSortedIterator<T, R, W> where
    T: Sortable<W, R>,
    R: Read,
    W: Write
[src]

type Item = Result<T, T::Error>

The type of the elements being iterated over.

Auto Trait Implementations

impl<T, R, W> RefUnwindSafe for ExtSortedIterator<T, R, W> where
    R: RefUnwindSafe,
    T: RefUnwindSafe,
    W: RefUnwindSafe

impl<T, R, W> Send for ExtSortedIterator<T, R, W> where
    R: Send,
    T: Send,
    W: Send

impl<T, R, W> Sync for ExtSortedIterator<T, R, W> where
    R: Sync,
    T: Sync,
    W: Sync

impl<T, R, W> Unpin for ExtSortedIterator<T, R, W> where
    R: Unpin,
    T: Unpin,
    W: Unpin

impl<T, R, W> UnwindSafe for ExtSortedIterator<T, R, W> where
    R: UnwindSafe,
    T: UnwindSafe,
    W: 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.