[](https://github.com/Alorel/impartial-ord-rs/actions/workflows/ci.yml?query=branch%3Amaster)
[](https://crates.io/crates/impartial-ord)
[](https://docs.rs/impartial-ord)
[](https://libraries.io/cargo/impartial-ord)
Derives a quicker `PartialOrd` for types that already implement `Ord`.
```rust
// Input
#[derive(PartialEq, Eq, Ord, impartial_ord::ImpartialOrd)]
struct MyStruct;
// Output
impl PartialOrd for MyStruct {
#[inline]
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
Some(Ord::cmp(self, other))
}
}
```