about summary refs log tree commit diff
path: root/src/libstd/result.rs
AgeCommit message (Collapse)AuthorLines
2013-08-18auto merge of #8551 : huonw/rust/speling, r=alexcrichtonbors-1/+1
(This doesn't add/remove `u`s or change `ize` to `ise`, or anything like that.)
2013-08-16doc: correct spelling in documentation.Huon Wilson-1/+1
2013-08-15std: Replace map_vec, map_vec2, iter_vec2 in std::resultblake2-ppc-55/+84
Replace these with three functions based on iterators: collect, fold, and fold_. The mapping part is replaced by iterator .map(), so the part that these functions do is to accumulate the final Result<,> value. * `result::collect` gathers `Iterator<Result<V, U>>` to `Result<~[V], U>` * `result::fold` folds `Iterator<Result<T, E>>` to `Result<V, E>` * `result::fold_` folds `Iterator<Result<T, E>>` to `Result<(), E>`
2013-08-10Mass rename of .consume{,_iter}() to .move_iter()Erick Tryzelaar-2/+2
cc #7887
2013-08-07core: option.map_consume -> option.map_moveErick Tryzelaar-4/+4
2013-08-07std: add result.map_move, result.map_err_moveErick Tryzelaar-4/+52
2013-08-06std: Use method name Option::consumeblake2-ppc-2/+2
With Option as the simplest container, `consume` is the way to turn it into a by-value iterator.
2013-08-06std: Remove unused trait bound in Result::mapblake2-ppc-1/+1
2013-08-06std: Convert Result to use external iteratorsblake2-ppc-14/+18
convert iter() and iter_err() for Result. Use OptionIterator.
2013-08-05Updated std::Option, std::Either and std::ResultMarvin Löbel-178/+149
- 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-1/+1
this has been replaced by `for`
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-2/+2
2013-07-27std: cleanup imports in result::testsErick Tryzelaar-8/+6
2013-07-27core: correct the casing of result::{Ok,Err} in the docsErick Tryzelaar-59/+57
2013-07-27to_either + fixesErick Tryzelaar-45/+49
2013-07-27cleanup .map and .map_errErick Tryzelaar-40/+33
2013-07-27cleanup .get and .get_errmaikklein-36/+29
2013-07-27cleanup .chain and .chain_err + fixing other filesmaikklein-62/+35
2013-07-27cleanup .unwrap and .unwrap_err fixing io testsErick Tryzelaar-19/+14
2013-07-27cleanup .iter and .iter_errErick Tryzelaar-47/+48
2013-07-27cleanup get_refErick Tryzelaar-17/+14
2013-07-20rm obsolete no-op lintsDaniel Micay-1/+0
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-29/+31
2013-06-23vec: remove BaseIter implementationDaniel Micay-3/+3
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-31/+31
2013-06-08remove deprecated vec::{is_empty, len} functionsDaniel Micay-3/+4
2013-06-01Remove all uses of `pub impl`. rs=stylePatrick Walton-17/+17
2013-05-30Remove copy bindings from patterns.Niko Matsakis-13/+13
2013-05-30Require documentation by default for libstdAlex Crichton-0/+1
Adds documentation for various things that I understand. Adds #[allow(missing_doc)] for lots of things that I don't understand.
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+456
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-112/+0
2011-12-06Establish 'core' library separate from 'std'.Graydon Hoare-0/+112