pub trait ExactSize<A>: DoubleEndedIterator<A> { fn rposition(&mut self, predicate: &fn(A) -> bool) -> Option<uint> { ... } }
An iterator that knows its exact length
This trait is a helper for iterators like the vector iterator, so that it can support double-ended enumeration.
Iterator::size_hint
must return the exact size of the iterator.
Note that the size must fit in uint
.
fn rposition(&mut self, predicate: &fn(A) -> bool) -> Option<uint>
Return the index of the last element satisfying the specified predicate
If no element matches, None is returned.
OptionIterator<A>
Zip<T, U>
Map<'self, A, B, T>
Invert<T>
Inspect<'self, A, T>
Enumerate<T>
VecMutIterator<'self, T>
VecIterator<'self, T>
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).