Skip to main content

WithProgress

Trait WithProgress 

Source
pub trait WithProgress<'a, TItem>: Iterator<Item = TItem> {
    type Iter: Iterator<Item = TItem> + 'a;

    // Required method
    fn with_progress(self, progress: ProgressHandle<'a>) -> Self::Iter;
}
Expand description

Extension trait for iterators that adds a with_progress method.

Required Associated Types§

Source

type Iter: Iterator<Item = TItem> + 'a

The type of the iterator returned by with_progress.

Required Methods§

Source

fn with_progress(self, progress: ProgressHandle<'a>) -> Self::Iter

Wrap the iterator into an iterator that reports progress as it consumes items.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a, TItem: 'a, TIter: Iterator<Item = TItem> + 'a> WithProgress<'a, TItem> for TIter

Source§

type Iter = ProgressIter<'a, TItem, TIter>