pub fn to_pd_rights(self) -> PDFlags {
        use MapAction::*;
        match self {
            None => PDFlags::empty(),
            ReadUser => PDFlags::XD | PDFlags::US,
            ReadKernel => PDFlags::XD,
            ReadWriteUser => PDFlags::RW | PDFlags::XD | PDFlags::US,
            ReadWriteUserNoCache => PDFlags::RW | PDFlags::XD | PDFlags::US,
            ReadWriteKernel => PDFlags::RW | PDFlags::XD,
            ReadExecuteUser => PDFlags::US,
            ReadExecuteKernel => PDFlags::empty(),
            ReadWriteExecuteUser => PDFlags::RW | PDFlags::US,
            ReadWriteExecuteKernel => PDFlags::RW,
        }
    }
/// Transform MapAction into rights for 2 MiB page.
Transform MapAction into rights for 2 MiB page.
Transform MapAction into rights for 2 MiB page .
pub fn to_pd_rights(self) -> PDFlags {
        use MapAction::*;
        match self {
            None => PDFlags::empty(),
            ReadUser => PDFlags::XD | PDFlags::US,
            ReadKernel => PDFlags::XD,
            ReadWriteUser => PDFlags::RW | PDFlags::XD | PDFlags::US,
            ReadWriteUserNoCache => PDFlags::RW | PDFlags::XD | PDFlags::US,
            ReadWriteKernel => PDFlags::RW | PDFlags::XD,
            ReadExecuteUser => PDFlags::US,
            ReadExecuteKernel => PDFlags::empty(),
            ReadWriteExecuteUser => PDFlags::RW | PDFlags::US,
            ReadWriteExecuteKernel => PDFlags::RW,
        }
    }
pub fn to_pd_rights ( self ) -> PDFlags { use MapAction :: * ; match self { None => PDFlags :: empty ( ) , ReadUser => PDFlags :: XD | PDFlags :: US , ReadKernel => PDFlags :: XD , ReadWriteUser => PDFlags :: RW | PDFlags :: XD | PDFlags :: US , ReadWriteUserNoCache => PDFlags :: RW | PDFlags :: XD | PDFlags :: US , ReadWriteKernel => PDFlags :: RW | PDFlags :: XD , ReadExecuteUser => PDFlags :: US , ReadExecuteKernel => PDFlags :: empty ( ) , ReadWriteExecuteUser => PDFlags :: RW | PDFlags :: US , ReadWriteExecuteKernel => PDFlags :: RW , } }
Transform MapAction into rights for 2 MiB page.
Transform MapAction into rights for 2 MiB page .
self
self