derive PartialOrd and Ord for Address

This commit is contained in:
Szymon Walter 2018-03-20 10:14:24 +01:00
parent 69b3ba7552
commit e6ebd09b3e

View file

@ -34,7 +34,7 @@ impl Size for Size8192 {
const LOG_SIZE: u32 = 3;
}
#[derive(Clone, Copy, PartialEq, Eq, Hash)]
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Address<S: Size> {
block: usize,
offset: usize,