| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-09-04 | Auto merge of #63166 - ksqsf:master, r=alexcrichton | bors | -0/+81 | |
| Add Result::cloned{,_err} and Result::copied{,_err} This is a little nice addition to `Result`. 1. I'm not sure how useful are `cloned_err` and `copied_err`, but for the sake of completeness they are here. 2. Naming is similar to `map`/`map_err`. I thought about naming `cloned` as `cloned_ok` and add another method called `cloned` that clones both Ok and Err, but `cloned_ok` should be more prevalent than `cloned_both`. | ||||
| 2019-08-02 | Remove Err variants of cloned and copied | ksqsf | -79/+0 | |
| 2019-08-01 | Fix doc tests | ksqsf | -17/+17 | |
| 2019-08-01 | Revert "cloned/copied" | ksqsf | -140/+4 | |
| This reverts commit 6c130817623426697d8ebdf5d505487bd11ee2f6. | ||||
| 2019-08-01 | Rename {copied,cloned} to {copied,cloned}_ok, and add {copied,cloned} to ↵ | ksqsf | -4/+140 | |
| copy/clone both Ok and Err | ||||
| 2019-08-01 | Make these methods public | ksqsf | -8/+8 | |
| 2019-08-01 | Fix issue and impl | ksqsf | -9/+9 | |
| 2019-08-01 | Add Result::cloned{,_err} and Result::copied{,_err} | ksqsf | -0/+160 | |
| 2019-07-29 | Use internal iteration in the Sum and Product impls of Result and Option | Tim Vermeulen | -2/+2 | |
| 2019-07-27 | Refactoring use commun code between option, result and accum | Stargateur | -34/+2 | |
| 2019-07-18 | Use DerefMut | Yuki Okushi | -1/+1 | |
| 2019-07-18 | renamed `inner_deref` feature's `deref*()` methods `as_deref*()` as per ↵ | Brad Gibson | -15/+48 | |
| discussion https://github.com/rust-lang/rust/issues/50264 | ||||
| 2019-07-17 | Auto merge of #62596 - cuviper:expect_none, r=rkruppe | bors | -5/+5 | |
| Add Option::expect_none(msg) and unwrap_none() These are `Option` analogues to `Result::expect_err` and `unwrap_err`. | ||||
| 2019-07-12 | Rollup merge of #62431 - czipperz:add-messages-to-must-use-is_-methods, ↵ | Mazdak Farrokhzad | -2/+2 | |
| r=scottmcm Add messages to `Option`'s and `Result`'s `must_use` annotation for `is_*` r? @RalfJung | ||||
| 2019-07-11 | Make cold unwraps take &dyn Debug | Josh Stone | -5/+5 | |
| 2019-07-07 | Implement Option::contains, Result::contains and Result::contains_err | Simon Ochsenreither | -0/+52 | |
| This increases consistency with other common data structures. | ||||
| 2019-07-05 | Add messages to Option and Result must_use for is_* | Chris Gregory | -2/+2 | |
| 2019-06-01 | Implement Clone::clone_from for Result. | Mara Bos | -1/+22 | |
| 2019-04-19 | libcore: deny more... | Mazdak Farrokhzad | -2/+2 | |
| 2019-04-18 | libcore => 2018 | Taiki Endo | -3/+3 | |
| 2019-04-08 | Add must_use annotations to Result::is_ok and is_err | Alex Gaynor | -0/+2 | |
| 2019-03-25 | add missing braces | Felix S Klock II | -2/+2 | |
| add missing braces analogous to those suggested by killercup | ||||
| 2019-03-22 | Expand `impl FromIterator for Result` doc to include examples of `Err` and ↵ | Felix S. Klock II | -0/+28 | |
| early termination. | ||||
| 2019-03-15 | Option and Result: Add references to documentation of as_ref and as_mut | Chris Gregory | -2/+2 | |
| 2019-03-11 | impl FromIterator for Result: Use assert_eq! instead of assert! | Chris Gregory | -1/+1 | |
| 2019-02-10 | libs: doc comments | Alexander Regueiro | -1/+1 | |
| 2019-01-13 | stabilize transpose_result in 1.33 | Mazdak Farrokhzad | -3/+1 | |
| 2018-12-25 | Remove licenses | Mark Rousskov | -10/+0 | |
| 2018-09-29 | Use impl_header_lifetime_elision in libcore | Scott McMurray | -8/+8 | |
| 2018-09-12 | Rollup merge of #53777 - ivanbakel:result_map_or_else, r=alexcrichton | kennytm | -0/+30 | |
| Implemented map_or_else for Result<T, E> Fulfills #53268 The example is ripped from `Option::map_or_else`, with the types corrected. | ||||
| 2018-09-06 | Fix invalid urls | Guillaume Gomez | -9/+3 | |
| 2018-08-30 | Added feature attribute to example code in map_or_else doc | Isaac van Bakel | -0/+1 | |
| 2018-08-29 | Corrected type variable output T -> U in Result::map_or_else | Isaac van Bakel | -1/+1 | |
| 2018-08-29 | Corrected feature status of Result::map_or_else | Isaac van Bakel | -1/+1 | |
| map_or_else is now correctly labelled unstable and points to the tracking issue on rust-lang/rust | ||||
| 2018-08-29 | Corrected bad typing in Result::map_or_else doc | Isaac van Bakel | -2/+2 | |
| The error value now includes the type of the success. The success value now includes the type of the error. | ||||
| 2018-08-29 | Corrected feature name for map_or_else | Isaac van Bakel | -1/+1 | |
| 2018-08-29 | Implemented map_or_else for Result<T, E> | Isaac van Bakel | -0/+29 | |
| 2018-08-09 | inline some short functions | M Farkas-Dyck | -0/+4 | |
| 2018-07-29 | resolved upstream merge conflicts | Brad Gibson | -1/+1 | |
| 2018-05-07 | Add explanation for #[must_use] on Result | Manish Goregaokar | -1/+1 | |
| 2018-04-27 | separated inner_deref Result impls | Brad Gibson | -1/+7 | |
| 2018-04-26 | cleaned up #[unstable] attributes | Brad Gibson | -3/+1 | |
| 2018-04-26 | refactored to implement without trait | Brad Gibson | -57/+34 | |
| 2018-04-26 | added DerefOption and DerefResult + tests to std | Brad Gibson | -1/+58 | |
| 2018-03-03 | core: Update stability attributes for FusedIterator | Ulrik Sverdrup | -3/+3 | |
| 2018-03-03 | core: Stabilize FusedIterator | Ulrik Sverdrup | -3/+3 | |
| FusedIterator is a marker trait that promises that the implementing iterator continues to return `None` from `.next()` once it has returned `None` once (and/or `.next_back()`, if implemented). The effects of FusedIterator are already widely available through `.fuse()`, but with stable `FusedIterator`, stable Rust users can implement this trait for their iterators when appropriate. | ||||
| 2018-01-10 | Add transpose conversions for Option and Result | Taylor Cramer | -0/+29 | |
| These impls are useful when working with combinator methods that expect an option or a result, but you have a Result<Option<T>, E> instead of an Option<Result<T, E>> or vice versa. | ||||
| 2017-12-07 | Rollup merge of #46548 - jonathanstrong:master, r=dtolnay | Guillaume Gomez | -0/+10 | |
| Recommends lazily evaluated alternatives for `Option::or` and `Result::or` Adds language to docs for `Option` and `Result` recommending the use of lazily evaluated alternatives when appropriate. These comments are intended to echo a [clippy lint] on the same topic. The [reddit discussion] may also be of interest. [clippy lint]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#or_fun_call [reddit discussion]: https://www.reddit.com/r/rust/comments/7hutqn/perils_of_optionor_and_resultor/ | ||||
| 2017-12-07 | adds links to methods, removes trailing whitespace | Jonathan Strong | -4/+6 | |
| 2017-12-06 | Adds language to the documentation for `Option` and `Result` suggesting | Jonathan Strong | -0/+8 | |
| the use of lazily evaluated alternatives when appropriate. These comments are intended to echo a clippy lint on the same topic (see https://rust-lang-nursery.github.io/rust-clippy/master/index.html#or_fun_call) | ||||
