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