]> git.lizzy.rs Git - rust.git/commit
core: add a reverse method to Ordering.
authorHuon Wilson <dbau.pp+github@gmail.com>
Fri, 1 Aug 2014 02:53:00 +0000 (12:53 +1000)
committerHuon Wilson <dbau.pp+github@gmail.com>
Sun, 3 Aug 2014 01:50:19 +0000 (11:50 +1000)
commit7df277115ac009a671e0a68a27d4c9896bd81a7b
treed3f6ae3185fa42723d2d7998957113f949cd1dfd
parent75a39e0fb8fef20d72f7279686ec266bb9cec127
core: add a reverse method to Ordering.

This flips the comparison and is designed to be used when sorting etc.
src/libcore/cmp.rs
src/libcoretest/cmp.rs