Trait IntoCloningIterable

Source
pub trait IntoCloningIterable: Iterator + Clone {
    // Provided method
    fn into_iterable(self) -> CloningIterable<Self> { ... }
}
Expand description

Trait to transform types implementing Iterator + Clone into an Iterable.

Resulting iterable is of type CloningIterable.

Provided Methods§

Source

fn into_iterable(self) -> CloningIterable<Self>

Transforms this type implementing Iterator + Clone into an Iterable.

Resulting iterable is of type CloningIterable.

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§

Source§

impl<I> IntoCloningIterable for I
where I: Iterator + Clone,