Trait grabbag::iter::keep_some::KeepSomeIterator [] [src]

pub trait KeepSomeIterator: Sized {
    fn keep_some(self) -> KeepSome<Self>;
}

a  →  (e | e  →  a : Some(e))

Required Methods

fn keep_some(self) -> KeepSome<Self>

Creates an iterator that, given a sequence of Option<E> values, unwraps all Some(E)s, and discards all Nones.

Implementors