rust/src/libstd/sys/common
Alex Crichton 5d0beb7d85 rollup merge of #23549: aturon/stab-num
This commit stabilizes the `std::num` module:

* The `Int` and `Float` traits are deprecated in favor of (1) the
  newly-added inherent methods and (2) the generic traits available in
  rust-lang/num.

* The `Zero` and `One` traits are reintroduced in `std::num`, which
  together with various other traits allow you to recover the most
  common forms of generic programming.

* The `FromStrRadix` trait, and associated free function, is deprecated
  in favor of inherent implementations.

* A wide range of methods and constants for both integers and floating
  point numbers are now `#[stable]`, having been adjusted for integer
  guidelines.

* `is_positive` and `is_negative` are renamed to `is_sign_positive` and
  `is_sign_negative`, in order to address #22985

* The `Wrapping` type is moved to `std::num` and stabilized;
  `WrappingOps` is deprecated in favor of inherent methods on the
  integer types, and direct implementation of operations on
  `Wrapping<X>` for each concrete integer type `X`.

Closes #22985
Closes #21069

[breaking-change]

r? @alexcrichton
2015-03-31 10:15:26 -07:00
..
backtrace.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
condvar.rs sed -i -s 's/\bmod,/self,/g' **/*.rs 2015-01-03 22:42:21 -05:00
helper_thread.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
mod.rs Stabilize std::num 2015-03-31 07:50:25 -07:00
mutex.rs std: Add a new env module 2015-02-01 11:08:15 -08:00
net.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
net2.rs Add std::net::lookup_addr for reverse DNS lookup 2015-03-26 17:13:14 -07:00
rwlock.rs Fix spelling errors in comments. 2015-03-19 00:48:08 -04:00
stack.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
thread.rs std: Clean up the sys::thread modules 2015-03-15 10:35:48 -07:00
thread_info.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
thread_local.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
wtf8.rs rollup merge of #23549: aturon/stab-num 2015-03-31 10:15:26 -07:00