derive
PartialOrd
and Ord
for Address
This commit is contained in:
parent
69b3ba7552
commit
e6ebd09b3e
|
@ -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,
|
||||
|
|
Reference in a new issue