Struct std::option::Item[src]

pub struct Item<A> {
    // some fields omitted
}

An Option iterator that yields either one or zero elements

The Item iterator is returned by the iter, mut_iter and move_iter methods on Option.

Trait Implementations

impl<A> Iterator<A> for Item<A>

fn next<A>(&mut self) -> Option<A>

fn size_hint<A>(&self) -> (uint, Option<uint>)

fn size_hint<A>(&self) -> (uint, Option<uint>)

fn chain<U: Iterator<A>>(self, U) -> Chain<Item<A>, U>

fn zip<B, U: Iterator<B>>(self, U) -> Zip<Item<A>, U>

fn map<B>(self, |A|: 'r -> B) -> Map<'r, A, B, Item<A>>

fn filter<A>(self, |&A|: 'r -> bool) -> Filter<'r, A, Item<A>>

fn filter_map<B>(self, |A|: 'r -> Option<B>) -> FilterMap<'r, A, B, Item<A>>

fn enumerate<A>(self) -> Enumerate<Item<A>>

fn peekable<A>(self) -> Peekable<A, Item<A>>

fn skip_while<A>(self, |&A|: 'r -> bool) -> SkipWhile<'r, A, Item<A>>

fn take_while<A>(self, |&A|: 'r -> bool) -> TakeWhile<'r, A, Item<A>>

fn skip<A>(self, uint) -> Skip<Item<A>>

fn take<A>(self, uint) -> Take<Item<A>>

fn scan<St, B>(self, St, |&mut St, A|: 'r -> Option<B>) -> Scan<'r, A, B, Item<A>, St>

fn flat_map<B, U: Iterator<B>>(self, |A|: 'r -> U) -> FlatMap<'r, A, Item<A>, U>

fn fuse<A>(self) -> Fuse<Item<A>>

fn inspect<A>(self, |&A|: 'r) -> Inspect<'r, A, Item<A>>

fn by_ref<A>(&'r mut self) -> ByRef<'r, Item<A>>

fn advance<A>(&mut self, |A| -> bool) -> bool

fn collect<B: FromIterator<A>>(&mut self) -> B

fn nth<A>(&mut self, uint) -> Option<A>

fn last<A>(&mut self) -> Option<A>

fn fold<B>(&mut self, B, |B, A| -> B) -> B

fn count<A>(&mut self) -> uint

fn all<A>(&mut self, |A| -> bool) -> bool

fn any<A>(&mut self, |A| -> bool) -> bool

fn find<A>(&mut self, |&A| -> bool) -> Option<A>

fn position<A>(&mut self, |A| -> bool) -> Option<uint>

fn max_by<B: Ord>(&mut self, |&A| -> B) -> Option<A>

fn min_by<B: Ord>(&mut self, |&A| -> B) -> Option<A>

impl<A> DoubleEndedIterator<A> for Item<A>

fn next_back<A>(&mut self) -> Option<A>

fn rev<A>(self) -> Rev<Item<A>>

impl<A> ExactSize<A> for Item<A>

fn rposition<A>(&mut self, |A| -> bool) -> Option<uint>

fn len<A>(&self) -> uint

Derived Implementations

impl<A: Clone> Clone for Item<A>

fn clone<A: Clone>(&self) -> Item<A>

fn clone_from<A: Clone>(&mut self, &Item<A>)