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