rust/src/libstd/rt
bors 2aa578efd9 auto merge of #9115 : erickt/rust/master, r=erickt
This is a series of patches to modernize option and result. The highlights are:

* rename `.unwrap_or_default(value)` and etc to `.unwrap_or(value)`
* add `.unwrap_or_default()` that uses the `Default` trait
* add `Default` implementations for vecs, HashMap, Option
* add  `Option.and(T) -> Option<T>`, `Option.and_then(&fn() -> Option<T>) -> Option<T>`, `Option.or(T) -> Option<T>`, and `Option.or_else(&fn() -> Option<T>) -> Option<T>`
* add `option::ToOption`, `option::IntoOption`, `option::AsOption`, `result::ToResult`, `result::IntoResult`, `result::AsResult`, `either::ToEither`, and `either::IntoEither`, `either::AsEither`
* renamed `Option::chain*` and `Result::chain*` to `and_then` and `or_else` to avoid the eventual collision with `Iterator.chain`.
* Added a bunch of impls of `Default`
* Added a `#[deriving(Default)]` syntax extension
* Removed impls of `Zero` for `Option<T>` and vecs.
2013-09-14 00:01:04 -07:00
..
io std: Rename {Option,Result}::chain{,_err}* to {and_then,or_else} 2013-09-12 18:54:13 -07:00
uv rename std::iterator to std::iter 2013-09-09 03:21:46 -04:00
args.rs rename std::iterator to std::iter 2013-09-09 03:21:46 -04:00
borrowck.rs librustc: Stop calling each_path in coherence. 2013-08-27 18:47:58 -07:00
comm.rs Remove the iter module. 2013-08-29 01:27:24 -04:00
context.rs Support Win64 context switching 2013-08-26 22:16:54 +09:00
crate_map.rs Convert rust_crate_map.cpp to Rust 2013-09-13 00:47:30 +02:00
env.rs std: Restore dynamic borrow tracking 2013-08-19 20:39:39 -07:00
global_heap.rs Add externfn macro and correctly label fixed_stack_segments 2013-08-19 07:13:15 -04:00
kill.rs auto merge of #8790 : huonw/rust/unsafearc, r=thestinger 2013-08-27 13:20:47 -07:00
local.rs librustc: Fix merge fallout 2013-08-27 19:09:27 -07:00
local_heap.rs librustc: Ensure that type parameters are in the right positions in paths. 2013-08-27 18:47:57 -07:00
local_ptr.rs rt: remove a series of unfortunate casts. 2013-08-29 22:55:59 +10:00
logging.rs Convert rust_crate_map.cpp to Rust 2013-09-13 00:47:30 +02:00
message_queue.rs Rename UnsafeAtomicRcBox to UnsafeArc. Fixes #7674. 2013-08-27 20:12:39 +10:00
mod.rs Convert rust_crate_map.cpp to Rust 2013-09-13 00:47:30 +02:00
rc.rs Change finalize -> drop. 2013-06-25 21:14:39 -04:00
rtio.rs std::rt: Add get_host_addresses function 2013-09-05 14:22:16 -07:00
sched.rs rename std::iterator to std::iter 2013-09-09 03:21:46 -04:00
select.rs librustc: Ensure that type parameters are in the right positions in paths. 2013-08-27 18:47:57 -07:00
sleeper_list.rs Rename UnsafeAtomicRcBox to UnsafeArc. Fixes #7674. 2013-08-27 20:12:39 +10:00
stack.rs Remove offset_inbounds for an unsafe offset function 2013-08-27 23:22:52 -07:00
task.rs Consolidate local_data implementations, and cleanup 2013-08-27 21:29:11 -07:00
test.rs rename std::iterator to std::iter 2013-09-09 03:21:46 -04:00
thread.rs Add externfn macro and correctly label fixed_stack_segments 2013-08-19 07:13:15 -04:00
thread_local_storage.rs std: Add Win64 support 2013-08-26 22:15:45 +09:00
tube.rs librustc: Ensure that type parameters are in the right positions in paths. 2013-08-27 18:47:57 -07:00
util.rs rt: Handle non-integer RUST_THREADS (slightly) more gracefully. 2013-08-29 22:55:59 +10:00
work_queue.rs Change concurrency primitives to standard naming conventions 2013-07-27 22:06:29 -07:00