Struct std::option::ItemUnstable [-]  [+] [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, iter_mut and into_iter methods on Option.

Trait Implementations

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

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

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

fn size_hint(&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| -> B) -> Map<'r, A, B, Item<A>>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

fn count(&mut self) -> uint

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

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

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

fn position(&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(&mut self) -> Option<A>

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

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

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

fn len(&self) -> uint

Derived Implementations

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

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

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