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§
Sourcefn with_ranges(self) -> IterWithRange<Self> ⓘ
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.