Skip to main content

IterExtensionsRle

Trait IterExtensionsRle 

Source
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§

Source

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".

Implementors§

Source§

impl<I, T> IterExtensionsRle<T> for I
where I: Iterator<Item = (usize, T)>, T: Clone,