pub struct AvailableMovesIterator<'a, B: Board> { /* private fields */ }
Expand description
A convenient type to use for the iterator returned by BoardMoves::available_moves.
Implementations§
Trait Implementations§
Source§impl<'a, B: Clone + Board> Clone for AvailableMovesIterator<'a, B>
impl<'a, B: Clone + Board> Clone for AvailableMovesIterator<'a, B>
Source§fn clone(&self) -> AvailableMovesIterator<'a, B>
fn clone(&self) -> AvailableMovesIterator<'a, B>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl InternalIterator for AvailableMovesIterator<'_, ArimaaBoard>
impl InternalIterator for AvailableMovesIterator<'_, ArimaaBoard>
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 moreSource§impl InternalIterator for AvailableMovesIterator<'_, AtaxxBoard>
impl InternalIterator for AvailableMovesIterator<'_, AtaxxBoard>
Source§fn try_for_each<R, F: FnMut(Self::Item) -> ControlFlow<R>>(
self,
f: F,
) -> ControlFlow<R>
fn try_for_each<R, F: FnMut(Self::Item) -> ControlFlow<R>>( 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 moreSource§impl InternalIterator for AvailableMovesIterator<'_, ChessBoard>
impl InternalIterator for AvailableMovesIterator<'_, ChessBoard>
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 moreSource§impl InternalIterator for AvailableMovesIterator<'_, GoBoard>
impl InternalIterator for AvailableMovesIterator<'_, GoBoard>
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 moreSource§impl<'a> InternalIterator for AvailableMovesIterator<'a, STTTBoard>
impl<'a> InternalIterator for AvailableMovesIterator<'a, STTTBoard>
Source§fn try_for_each<R, F: FnMut(Self::Item) -> ControlFlow<R>>(
self,
f: F,
) -> ControlFlow<R>
fn try_for_each<R, F: FnMut(Self::Item) -> ControlFlow<R>>( 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 AvailableMovesIterator<'a, B>
impl<'a, B> RefUnwindSafe for AvailableMovesIterator<'a, B>where
B: RefUnwindSafe,
impl<'a, B> Send for AvailableMovesIterator<'a, B>
impl<'a, B> Sync for AvailableMovesIterator<'a, B>
impl<'a, B> Unpin for AvailableMovesIterator<'a, B>
impl<'a, B> UnwindSafe for AvailableMovesIterator<'a, B>where
B: RefUnwindSafe,
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.