Struct WhileSome
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct WhileSome<I> { /* private fields */ }
An iterator adaptor that filters Option<A> iterator elements
and produces A. Stops on the first None encountered.
See .while_some() for more information.
Trait Implementations
impl<I, A> Iterator for WhileSome<I>
where
I: Iterator<Item = Option<A>>,
type Item = A;fn next(&mut self) -> Option<Self::Item>fn size_hint(&self) -> (usize, Option<usize>)fn fold<B, F>(self, acc: B, f: F) -> B where Self: Sized, F: FnMut(B, Self::Item) -> B,
impl<I: Clone> Clone for WhileSome<I>
fn clone(&self) -> Self
impl<I: Debug> Debug for WhileSome<I>
fn fmt(&self, f: &mut Formatter<'_>) -> Result