Files
rust/src/libstd
Brendan Zabarauskas 472dfe74b3 Simplify std::num::Primitive trait definition
This removes the `Primitive::{bits, bytes, is_signed}` methods and removes the operator trait constraints, for the reasons outlined below:

- The `Primitive::{bits, bytes}` associated functions were originally added to reflect the existing `BITS` and `BYTES` statics included in the numeric modules. These statics are only exist as a workaround for Rust's lack of CTFE, and should probably be deprecated in the future in favor of using the `std::mem::size_of` function (see #11621).

- `Primitive::is_signed` seems to be of little utility and does not seem to be used anywhere in the Rust compiler or libraries. It is also rather ugly to call due to the `Option<Self>` workaround for #8888.

- The operator trait constraints are already covered by the `Num` trait.
2014-01-18 09:12:53 +11:00
..
2014-01-08 23:42:28 -08:00
2014-01-16 14:24:04 +08:00
2013-12-27 09:49:11 +01:00
2014-01-07 23:51:38 -08:00
2014-01-07 18:49:13 -08:00
2014-01-07 23:51:38 -08:00
2014-01-07 18:49:13 -08:00
2014-01-06 09:26:47 -08:00
2013-12-27 09:49:11 +01:00
2014-01-07 18:49:13 -08:00
2014-01-09 15:41:46 +11:00
2013-12-27 09:49:11 +01:00
2014-01-12 17:45:22 -08:00
2014-01-07 23:51:38 -08:00
2014-01-14 22:01:40 -05:00
2014-01-15 08:22:56 -05:00
2014-01-15 08:22:56 -05:00
2014-01-07 23:51:38 -08:00
2014-01-15 12:03:21 +11:00
2013-12-08 02:55:28 -05:00
2014-01-07 23:51:38 -08:00
2014-01-15 08:22:56 -05:00