]> git.lizzy.rs Git - rust.git/commit
cmp: Implement all PartialOrd methods for Reverse
authorUlrik Sverdrup <bluss@users.noreply.github.com>
Thu, 30 Mar 2017 15:25:36 +0000 (17:25 +0200)
committerUlrik Sverdrup <bluss@users.noreply.github.com>
Thu, 30 Mar 2017 15:29:19 +0000 (17:29 +0200)
commit6fda0fe891fd85f5cde89fe672d5796f15269898
treebe69caf8a2766bfa8b86e4dfa63ae2533887f8ca
parentfe151194e9a919ab23c2bb356767a5cbfa3811e7
cmp: Implement all PartialOrd methods for Reverse

When making a forwarding wrapper we must in general forward all methods,
so that we use the type's own `lt` for example instead of the default.

Example important case: f32's partial_cmp does several operations but
its lt is a primitive.
src/libcore/cmp.rs