rust/src/libcore
Corey Farwell 7463cf5faf Rollup merge of #42496 - Razaekel:feature/integer_max-min, r=BurntSushi
Add max and min to Ord

Pursuant to issue #25663, this PR adds max and min methods with default implementations to std::cmp::Ord. It also modifies std::cmp::max|min to internally alias to Ord::max|min, so that any overrides of the default implementations are automatically used by std::cmp::max|min.

Closes #25663
2017-06-13 17:15:00 -04:00
..
benches num: add minimal benchmarks for full floating-point formatting 2017-04-28 15:24:09 -04:00
fmt fix confusion about parts required for float formatting 2017-05-09 12:58:50 -04:00
hash Removal pass for anonymous parameters 2017-05-02 05:55:20 +02:00
iter Add dedicated docstrings to Sum/Product impl of Result 2017-06-12 10:50:28 +02:00
num Use ctlz_nonzero to improve ASM from next_power_of_two 2017-06-08 23:01:39 -07:00
prelude Run rustfmt on libcore/prelude folder 2016-10-16 22:13:04 +05:30
slice Auto merge of #41670 - scottmcm:slice-rotate, r=alexcrichton 2017-06-02 07:51:20 +00:00
str Add overflow checking for str::get with inclusive ranges 2017-06-04 11:08:25 -07:00
sync core: fix unused_macro warning 2017-05-18 23:33:08 -05:00
tests Add max and min default fns to Ord trait 2017-06-06 22:42:48 -04:00
Cargo.toml Move libXtest into libX/tests 2017-04-03 20:49:39 +02:00
any.rs Various fixes to wording consistency in the docs 2017-03-22 17:19:52 +01:00
array.rs std: Correct stability attributes for some implementations 2016-10-01 23:58:14 +01:00
borrow.rs Use `#[prelude_import]` in `libcore`. 2016-08-24 22:12:23 +00:00
cell.rs doc: a more complete explanation, and a better example 2017-06-08 22:52:54 +02:00
char.rs Reduce str transmutes, add mut versions of methods. 2017-04-09 19:13:54 -04:00
char_private.rs Reduce a table used for `Debug` impl of `str`. 2017-04-05 09:13:19 -07:00
clone.rs Remove function invokation parens from documentation links. 2017-03-13 21:43:18 -04:00
cmp.rs Alias std::cmp::max/min to Ord::max/min 2017-06-06 23:00:09 -04:00
convert.rs Clarify docs on implementing Into. 2017-05-28 16:13:56 -04:00
default.rs Bump version, upgrade bootstrap 2017-02-03 13:25:46 -08:00
internal_macros.rs Fix a few impl stability attributes 2017-01-29 13:31:47 +00:00
intrinsics.rs Add ctlz_nonzero & cttz_nonzero intrinsics 2017-06-08 23:01:39 -07:00
iter_private.rs Various fixes to wording consistency in the docs 2017-03-22 17:19:52 +01:00
lib.rs Remove some unused macros from the rust codebase 2017-05-12 09:37:28 +02:00
macros.rs Auto merge of #42155 - seanmonstar:unimplemented, r=sfackler 2017-06-11 18:56:27 +00:00
marker.rs doc rewording 2017-06-05 11:02:38 +08:00
mem.rs Auto merge of #40454 - djzin:fast-swap, r=sfackler 2017-06-11 16:40:52 +00:00
nonzero.rs refactor NonZero, Shared, and Unique APIs 2017-05-04 14:56:02 -04:00
ops.rs Give the `try_trait` feature its own tracking issue 2017-05-31 01:30:13 -07:00
option.rs Adding links to option::Option 2017-05-22 21:59:42 -04:00
panicking.rs Mark all extern functions as nounwind 2015-09-14 11:36:09 +02:00
ptr.rs Auto merge of #41920 - arielb1:inline-drop, r=eddyb 2017-05-13 13:59:19 +00:00
raw.rs Fix up various links 2017-03-20 10:10:16 -04:00
result.rs Simplify FromIterator example of Result 2017-06-09 22:20:32 +02:00
tuple.rs Remove macro work-around. 2016-11-12 12:47:13 -07:00