Struct MapWindows

#[must_use = "iterators are lazy and do nothing unless consumed"]
pub struct MapWindows<I: Iterator, F, const N: usize> { pub(in ::iter::adapters::map_windows) f: F, pub(in ::iter::adapters::map_windows) inner: MapWindowsInner<I, N> }

An iterator over the mapped windows of another iterator.

This struct is created by the Iterator::map_windows. See its documentation for more information.

Fields

f: F
inner: MapWindowsInner<I, N>

Implementations

impl<I: Iterator, F, const N: usize> MapWindows<I, F, N>

const fn new(iter: I, f: F) -> Self

Trait Implementations

impl<I, F, R, const N: usize> ExactSizeIterator for MapWindows<I, F, N> where I: ExactSizeIterator, F: FnMut(&[I::Item; N]) -> R,

impl<I, F, R, const N: usize> FusedIterator for MapWindows<I, F, N> where I: FusedIterator, F: FnMut(&[I::Item; N]) -> R,

impl<I, F, R, const N: usize> Iterator for MapWindows<I, F, N> where I: Iterator, F: FnMut(&[I::Item; N]) -> R,

type Item = R;
fn next(&mut self) -> Option<Self::Item>
fn size_hint(&self) -> (usize, Option<usize>)

impl<I, F, const N: usize> Clone for MapWindows<I, F, N> where I: Iterator + Clone, F: Clone, I::Item: Clone,

fn clone(&self) -> Self

impl<I: Iterator + Debug, F, const N: usize> Debug for MapWindows<I, F, N>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<I, F, const N: usize> Freeze for MapWindows<I, F, N> where F: Freeze, MapWindowsInner<I, N>: Freeze,

impl<I, F, const N: usize> RefUnwindSafe for MapWindows<I, F, N> where F: RefUnwindSafe, MapWindowsInner<I, N>: RefUnwindSafe,

impl<I, F, const N: usize> Send for MapWindows<I, F, N> where F: Send, MapWindowsInner<I, N>: Send,

impl<I, F, const N: usize> Sync for MapWindows<I, F, N> where F: Sync, MapWindowsInner<I, N>: Sync,

impl<I, F, const N: usize> Unpin for MapWindows<I, F, N> where F: Unpin, MapWindowsInner<I, N>: Unpin,

impl<I, F, const N: usize> UnsafeUnpin for MapWindows<I, F, N> where F: UnsafeUnpin, MapWindowsInner<I, N>: UnsafeUnpin,

impl<I, F, const N: usize> UnwindSafe for MapWindows<I, F, N> where F: UnwindSafe, MapWindowsInner<I, N>: UnwindSafe,

Blanket Implementations

impl<I> IntoIterator for MapWindows<I, F, N> where I: Iterator,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

impl<T> Any for MapWindows<I, F, N> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for MapWindows<I, F, N> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for MapWindows<I, F, N> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for MapWindows<I, F, N> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for MapWindows<I, F, N>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for MapWindows<I, F, N> where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for MapWindows<I, F, N>

impl<T, U> Into<U> for MapWindows<I, F, N> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for MapWindows<I, F, N> where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for MapWindows<I, F, N> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>