Trait IteratorWithRangesExt

Source
pub trait IteratorWithRangesExt: Sized {
    // Required method
    fn with_ranges(self) -> IterWithRange<Self> ;
}
Expand description

An extension trait for iterators that converts an Iterator into an IterWithRange. Use foo.with_ranges() to convert (augment) the iterator.

Required Methods§

Source

fn with_ranges(self) -> IterWithRange<Self>

Augments this iterator with information about the byte range of each underlying item.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§