@@ -268,7 +268,7 @@ impl fmt::Debug for PageTable {
268
268
/// Can be used to select one of the 512 entries of a page table.
269
269
///
270
270
/// Guaranteed to only ever contain 0..512.
271
- #[ derive( Debug , Clone , Copy , PartialEq , Eq , PartialOrd , Ord ) ]
271
+ #[ derive( Debug , Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
272
272
pub struct PageTableIndex ( u16 ) ;
273
273
274
274
impl PageTableIndex {
@@ -319,7 +319,7 @@ impl From<PageTableIndex> for usize {
319
319
/// This type is returned by the `VirtAddr::page_offset` method.
320
320
///
321
321
/// Guaranteed to only ever contain 0..4096.
322
- #[ derive( Debug , Clone , Copy , PartialEq , Eq , PartialOrd , Ord ) ]
322
+ #[ derive( Debug , Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
323
323
pub struct PageOffset ( u16 ) ;
324
324
325
325
impl PageOffset {
@@ -365,7 +365,7 @@ impl From<PageOffset> for usize {
365
365
}
366
366
}
367
367
368
- #[ derive( Debug , Clone , Copy , PartialEq , Eq , PartialOrd , Ord ) ]
368
+ #[ derive( Debug , Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
369
369
/// A value between 1 and 4.
370
370
pub enum PageTableLevel {
371
371
/// Represents the level for a page table.
0 commit comments