pub trait IterExtensionsRle<T>: Iterator<Item = (usize, T)>where
T: Clone,{
// Provided method
fn expand_rle(self) -> impl Iterator<Item = T>
where Self: Sized { ... }
}Provided Methods§
Sourcefn expand_rle(self) -> impl Iterator<Item = T>where
Self: Sized,
fn expand_rle(self) -> impl Iterator<Item = T>where
Self: Sized,
Expands a run-length encoded iterator back into its original sequence of elements. It takes an iterator of (cumulative_count, item) tuples and yields the repeated items
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".