about summary refs log tree commit diff
path: root/src/libstd/either.rs
AgeCommit message (Collapse)AuthorLines
2013-08-15Update either::partitionblake2-ppc-2/+3
Remove the only use of either::partition since it was better accomplished with vector methods. Update either::partition so that it sizes the vectors correctly before it starts.
2013-08-15std: Change either::{lefts, rights} to return an iteratorblake2-ppc-25/+28
2013-08-10Mass rename of .consume{,_iter}() to .move_iter()Erick Tryzelaar-1/+1
cc #7887
2013-08-07Add initial support for a new formatting syntaxAlex Crichton-1/+1
The new macro is available under the name ifmt! (only an intermediate name)
2013-08-05Updated std::Option, std::Either and std::ResultMarvin Löbel-193/+173
- Made naming schemes consistent between Option, Result and Either - Changed Options Add implementation to work like the maybe monad (return None if any of the inputs is None) - Removed duplicate Option::get and renamed all related functions to use the term `unwrap` instead
2013-08-03remove obsolete `foreach` keywordDaniel Micay-3/+3
this has been replaced by `for`
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-4/+5
2013-07-20Add Either::expect_{left,right}Ben Blum-6/+26
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-5/+5
2013-07-04Implement consuming iterators for ~[], remove vec::{consume, ↵Huon Wilson-1/+1
consume_reverse, map_consume}.
2013-06-23vec: remove BaseIter implementationDaniel Micay-4/+4
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-18replace #[inline(always)] with #[inline]. r=burningtree.Graydon Hoare-14/+14
2013-06-16Add copies to type params with Copy boundNiko Matsakis-2/+2
2013-06-01Remove all uses of `pub impl`. rs=stylePatrick Walton-8/+10
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+256
This only changes the directory names; it does not change the "real" metadata names.
2011-12-14Remove some duplicated unused parts of std now that they're present in core.Graydon Hoare-89/+0
2011-12-06Establish 'core' library separate from 'std'.Graydon Hoare-0/+89