mozilla/rust — pull request #5766 by thestinger (2013-04-07 04:54:04+00:00)
Title: make the Ordering type a bit more flexible

It was simpler to just give the variants a value instead of listing out all the cases for (*self, *other) in a match statement or writing spaghetti code. This makes the `cmp` method easier to use with FFI too, since you're a cast away from an idiomatic C comparator function.