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§
Required Methods§
Sourcefn with_progress(self, progress: ProgressHandle<'a>) -> Self::Iter
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".