pub fn partition<L, R>(eithers: ~[Either<L, R>]) -> (~[L], ~[R])
Extracts from a vector of either all the left values and right values
Returns a structure containing a vector of left values and a vector of right values.
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
).