The iteration traits and common implementation
InitOp - A function used to initialize the elements of a sequenceBaseIterBuildableCopyableIterCopyableNonstrictIterCopyableOrderedIterEqIterExtendedIterTimesallanyappend - Appending two generic sequencesbuildbuild_sized_optcontainscopy_seq - Copies a generic sequence, possibly converting it to a different type of sequence.counteachifilter_to_vecfindflat_map_to_vecfoldlfrom_elem - Creates and initializes a generic sequence with some elementfrom_fn - Creates and initializes a generic sequence from a functionmap - Apply a function to each element of an iterable and return the resultsmap_to_vecmaxminpositionrepeatto_vecInitOptype InitOp<T> = &fn(uint) -> T
A function used to initialize the elements of a sequence
BaseItereachfn each(blk: &fn(v: &A) -> bool)
size_hintfn size_hint() -> Option<uint>
Buildablebuild_sizedfn build_sized(size: uint, builder: &fn(push: &pure fn(A))) -> self
Builds a buildable sequence by calling a provided function with an argument function that pushes an element onto the back of the sequence. This version takes an initial size for the sequence.
CopyableIterfilter_to_vecfn filter_to_vec(pred: &fn(&A) -> bool) -> ~[A]
to_vecfn to_vec() -> ~[A]
findfn find(p: &fn(&A) -> bool) -> Option<A>
CopyableNonstrictItereach_valfn each_val(f: &fn(A) -> bool)
CopyableOrderedIterminfn min() -> A
maxfn max() -> A
EqItercontainsfn contains(x: &A) -> bool
countfn count(x: &A) -> uint
ExtendedItereachifn eachi(blk: &fn(uint, v: &A) -> bool)
allfn all(blk: &fn(&A) -> bool) -> bool
anyfn any(blk: &fn(&A) -> bool) -> bool
foldlfn foldl<B>(b0: B, blk: &fn(&B, &A) -> B) -> B
positionfn position(f: &fn(&A) -> bool) -> Option<uint>
map_to_vecfn map_to_vec<B>(op: &fn(&A) -> B) -> ~[B]
flat_map_to_vecfn flat_map_to_vec<B, IB: BaseIter<B>>(op: &fn(&A) -> IB) -> ~[B]
Timestimesfn times(it: &fn() -> bool)
allfn all<A, IA: BaseIter<A>>(self: &IA, blk: &fn(&A) -> bool) -> bool
anyfn any<A, IA: BaseIter<A>>(self: &IA, blk: &fn(&A) -> bool) -> bool
appendfn append<T: Copy, IT: BaseIter<T>, BT: Buildable<T>>(lhs: &IT, rhs: &IT) ->
BT
Appending two generic sequences
buildfn build<A, B: Buildable<A>>(builder: &fn(push: &pure fn(A))) -> B
Builds a sequence by calling a provided function with an argument function that pushes an element to the back of a sequence.
build_sized_optfn build_sized_opt<A,
B: Buildable<A>>(size: Option<uint>,
builder: &fn(push: &pure fn(A))) -> B
Builds a sequence by calling a provided function with an argument function that pushes an element to the back of a sequence. This version takes an initial size for the sequence.
containsfn contains<A: Eq, IA: BaseIter<A>>(self: &IA, x: &A) -> bool
copy_seqfn copy_seq<T: Copy, IT: BaseIter<T>, BT: Buildable<T>>(v: &IT) -> BT
Copies a generic sequence, possibly converting it to a different type of sequence.
countfn count<A: Eq, IA: BaseIter<A>>(self: &IA, x: &A) -> uint
eachifn eachi<A, IA: BaseIter<A>>(self: &IA, blk: &fn(uint, &A) -> bool)
filter_to_vecfn filter_to_vec<A: Copy, IA: BaseIter<A>>(self: &IA, prd: &fn(&A) -> bool) ->
~[A]
findfn find<A: Copy, IA: BaseIter<A>>(self: &IA, f: &fn(&A) -> bool) -> Option<A>
flat_map_to_vecfn flat_map_to_vec<A, B, IA: BaseIter<A>,
IB: BaseIter<B>>(self: &IA, op: &fn(&A) -> IB) -> ~[B]
foldlfn foldl<A, B, IA: BaseIter<A>>(self: &IA, b0: B, blk: &fn(&B, &A) -> B) -> B
from_elemfn from_elem<T: Copy, BT: Buildable<T>>(n_elts: uint, t: T) -> BT
Creates and initializes a generic sequence with some element
Creates an immutable vector of size n_elts and initializes the elements to the value t.
from_fnfn from_fn<T, BT: Buildable<T>>(n_elts: uint, op: InitOp<T>) -> BT
Creates and initializes a generic sequence from a function
Creates a generic sequence of size n_elts and initializes the elements to the value returned by the function op.
mapfn map<T, IT: BaseIter<T>, U, BU: Buildable<U>>(v: &IT, f: &fn(&T) -> U) -> BU
Apply a function to each element of an iterable and return the results
map_to_vecfn map_to_vec<A, B, IA: BaseIter<A>>(self: &IA, op: &fn(&A) -> B) -> ~[B]
maxfn max<A: Copy Ord, IA: BaseIter<A>>(self: &IA) -> A
minfn min<A: Copy Ord, IA: BaseIter<A>>(self: &IA) -> A
positionfn position<A, IA: BaseIter<A>>(self: &IA, f: &fn(&A) -> bool) -> Option<uint>
repeatfn repeat(times: uint, blk: &fn() -> bool)
to_vecfn to_vec<A: Copy, IA: BaseIter<A>>(self: &IA) -> ~[A]