]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #42496 - Razaekel:feature/integer_max-min, r=BurntSushi
authorCorey Farwell <coreyf@rwell.org>
Tue, 13 Jun 2017 21:15:00 +0000 (17:15 -0400)
committerGitHub <noreply@github.com>
Tue, 13 Jun 2017 21:15:00 +0000 (17:15 -0400)
commit7463cf5faf90c3f9c99077267520d53d73393591
tree625a705feecd4b55440294bc8226ad1da1d7bb4a
parent78d5d3723567e57e82ba65d73d2bc8bbe7f5c017
parenta32ffc679702e3ae307c7fc20873c9e970a8894c
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