Skip to main content

IntoIter

Trait IntoIter 

Source
pub trait IntoIter<N, R>
where N: Newtype, N::Inner: Step, R: RangeBounds<N>,
{ // Required method fn into_iter(self) -> Iterator<N> ; }
Expand description

Iterator extension trait defining the IntoIter::into_iter method.

Required Methods§

Source

fn into_iter(self) -> Iterator<N>

Converts a range bounds into a newtype Iterator instance.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<N, R> IntoIter<N, R> for R
where N: Newtype, N::Inner: Step, R: RangeBounds<N>,

Blanket IntoIter::into_iter implementation for all newtype range types.