pub struct BoardChildrenIterator<'a, B: Board> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<'a, B: Board> Clone for BoardChildrenIterator<'a, B>
impl<'a, B: Board> Clone for BoardChildrenIterator<'a, B>
Source§impl<'a, B: Board> Debug for BoardChildrenIterator<'a, B>
impl<'a, B: Board> Debug for BoardChildrenIterator<'a, B>
Source§impl<'a, B: Board> InternalIterator for BoardChildrenIterator<'a, B>
impl<'a, B: Board> InternalIterator for BoardChildrenIterator<'a, B>
Source§fn try_for_each<R, F>(self, f: F) -> ControlFlow<R>
fn try_for_each<R, F>(self, f: F) -> ControlFlow<R>
Applies function each elements of the iterator. Stops early if the
function returns
ControlFlow::Break
. Read moreSource§fn find_map<R, F>(self, f: F) -> Option<R>
fn find_map<R, F>(self, f: F) -> Option<R>
Applies function to the elements of iterator and returns the first
non-none result. Read more
Source§fn all<F>(self, f: F) -> bool
fn all<F>(self, f: F) -> bool
Tests if every element of the iterator matches the predicate. Read more
Source§fn any<F>(self, f: F) -> bool
fn any<F>(self, f: F) -> bool
Tests if any element of the iterator matches the predicate. Read more
Source§fn chain<U>(
self,
other: U,
) -> Chain<Self, <U as IntoInternalIterator>::IntoIter>where
U: IntoInternalIterator<Item = Self::Item>,
fn chain<U>(
self,
other: U,
) -> Chain<Self, <U as IntoInternalIterator>::IntoIter>where
U: IntoInternalIterator<Item = Self::Item>,
Takes two iterators and returns an iterator that first iterates over the
elements of the first iterator, and then over the second one. Read more
Source§fn cloned<'a, T>(self) -> Cloned<Self>
fn cloned<'a, T>(self) -> Cloned<Self>
Creates an iterator yields cloned elements of the original iterator. Read more
Source§fn collect<B>(self) -> Bwhere
B: FromInternalIterator<Self::Item>,
fn collect<B>(self) -> Bwhere
B: FromInternalIterator<Self::Item>,
Transforms the iterator into a collection. Read more
Source§fn copied<'a, T>(self) -> Copied<Self>
fn copied<'a, T>(self) -> Copied<Self>
Creates an iterator yields copied elements of the original iterator. Read more
Source§fn enumerate(self) -> Enumerate<Self>
fn enumerate(self) -> Enumerate<Self>
Creates an iterator that adds the index to every value of the original
iterator. Read more
Source§fn filter<P>(self, predicate: P) -> Filter<Self, P>
fn filter<P>(self, predicate: P) -> Filter<Self, P>
Creates an iterator which only yields elements matching the predicate. Read more
Source§fn filter_map<T, F>(self, f: F) -> FilterMap<Self, F>
fn filter_map<T, F>(self, f: F) -> FilterMap<Self, F>
Source§fn find<F>(self, f: F) -> Option<Self::Item>
fn find<F>(self, f: F) -> Option<Self::Item>
Returns the first element of the iterator that matches the predicate. Read more
Source§fn flat_map<U, F>(self, f: F) -> FlatMap<Self, F>
fn flat_map<U, F>(self, f: F) -> FlatMap<Self, F>
Creates and iterator which maps over the elements and flattens the
resulting structure. Read more
Source§fn fold<B, F>(self, init: B, f: F) -> B
fn fold<B, F>(self, init: B, f: F) -> B
Folds every element into an accumulator by applying an operation, returning the final result. Read more
Source§fn inspect<F>(self, f: F) -> Inspect<Self, F>
fn inspect<F>(self, f: F) -> Inspect<Self, F>
Run the closure on each element, while passing that element on. Read more
Source§fn max_by<F>(self, compare: F) -> Option<Self::Item>
fn max_by<F>(self, compare: F) -> Option<Self::Item>
Returns the maximum element of an iterator using a custom comparer
function.
Source§fn max_by_key<B>(self, key: impl FnMut(&Self::Item) -> B) -> Option<Self::Item>where
B: Ord,
fn max_by_key<B>(self, key: impl FnMut(&Self::Item) -> B) -> Option<Self::Item>where
B: Ord,
Returns the element that gives the maximum value from the specified function.
Source§fn min_by<F>(self, compare: F) -> Option<Self::Item>
fn min_by<F>(self, compare: F) -> Option<Self::Item>
Returns the minimum element of an iterator using a custom comparer
function.
Source§fn min_by_key<B>(self, key: impl FnMut(&Self::Item) -> B) -> Option<Self::Item>where
B: Ord,
fn min_by_key<B>(self, key: impl FnMut(&Self::Item) -> B) -> Option<Self::Item>where
B: Ord,
Returns the element that gives the minimum value from the specified function.
Source§fn nth(self, n: usize) -> Option<Self::Item>
fn nth(self, n: usize) -> Option<Self::Item>
Returns the
n
th element of the iterator. Read moreAuto Trait Implementations§
impl<'a, B> Freeze for BoardChildrenIterator<'a, B>
impl<'a, B> RefUnwindSafe for BoardChildrenIterator<'a, B>
impl<'a, B> Send for BoardChildrenIterator<'a, B>
impl<'a, B> Sync for BoardChildrenIterator<'a, B>
impl<'a, B> Unpin for BoardChildrenIterator<'a, B>
impl<'a, B> UnwindSafe for BoardChildrenIterator<'a, B>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<I> IntoInternalIterator for Iwhere
I: InternalIterator,
impl<I> IntoInternalIterator for Iwhere
I: InternalIterator,
Source§type Item = <I as InternalIterator>::Item
type Item = <I as InternalIterator>::Item
The type of the elements being iterated over.
Source§fn into_internal_iter(self) -> <I as IntoInternalIterator>::IntoIter
fn into_internal_iter(self) -> <I as IntoInternalIterator>::IntoIter
Convert this type to an internal iterator.