Struct TakeWhileInclusive
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct TakeWhileInclusive<I, F> { /* private fields */ }
An iterator adaptor that consumes elements while the given predicate is
true, including the element for which the predicate first returned
false.
See .take_while_inclusive()
for more information.
Trait Implementations
impl<I, F> Debug for TakeWhileInclusive<I, F>
where
I: Iterator + Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<I, F> FusedIterator for TakeWhileInclusive<I, F>
where
I: Iterator,
F: FnMut(&I::Item) -> bool,
impl<I, F> Iterator for TakeWhileInclusive<I, F>
where
I: Iterator,
F: FnMut(&I::Item) -> bool,
type Item = <I as Iterator>::Item;fn next(&mut self) -> Option<Self::Item>fn size_hint(&self) -> (usize, Option<usize>)fn fold<B, Fold>(self, init: B, f: Fold) -> B where Fold: FnMut(B, Self::Item) -> B,
impl<I: Clone, F: Clone> Clone for TakeWhileInclusive<I, F>
fn clone(&self) -> Self