derive more traits for Fixed*

This commit is contained in:
Trevor Spiteri 2018-08-10 10:45:53 +02:00
parent a077ad3bc9
commit 417d5e1b2d
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ macro_rules! fixed_unsigned {
"\n",
"[const generic]: https://github.com/rust-lang/rust/issues/44580\n",
),
#[derive(Clone, Copy)]
#[derive(Clone, Copy, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[repr(transparent)]
pub struct $Fixed($Inner);
}