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