IterNth

Trait IterNth 

Source
pub trait IterNth<S>: IterBase<S> {
    // Required method
    fn iter_nth(
        &mut self,
        state: &mut S,
        next: &mut impl IterNext<S, T = Self::T>,
        n: usize,
    ) -> Option<Self::T>;
}

Required Methods§

Source

fn iter_nth( &mut self, state: &mut S, next: &mut impl IterNext<S, T = Self::T>, n: usize, ) -> Option<Self::T>

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<F: FnMut(&mut S, usize) -> Option<T>, S, T> IterNth<S> for Meta<F, S, T>

Source§

impl<T, S> IterNth<S> for No<T>