pub struct LargePde(/* private fields */);
Implementations§
source§impl LargePde
impl LargePde
sourcepub const fn with_present(self, value: bool) -> Self
pub const fn with_present(self, value: bool) -> Self
Bits: 0..1
sourcepub fn set_present(&mut self, value: bool)
pub fn set_present(&mut self, value: bool)
Bits: 0..1
sourcepub const fn read_write(&self) -> bool
pub const fn read_write(&self) -> bool
Bits: 1..2
sourcepub const fn with_read_write(self, value: bool) -> Self
pub const fn with_read_write(self, value: bool) -> Self
Bits: 1..2
sourcepub fn set_read_write(&mut self, value: bool)
pub fn set_read_write(&mut self, value: bool)
Bits: 1..2
sourcepub const fn write_through(&self) -> bool
pub const fn write_through(&self) -> bool
Bits: 3..4
sourcepub const fn with_write_through(self, value: bool) -> Self
pub const fn with_write_through(self, value: bool) -> Self
Bits: 3..4
sourcepub fn set_write_through(&mut self, value: bool)
pub fn set_write_through(&mut self, value: bool)
Bits: 3..4
sourcepub const fn cache_disable(&self) -> bool
pub const fn cache_disable(&self) -> bool
Bits: 4..5
sourcepub const fn with_cache_disable(self, value: bool) -> Self
pub const fn with_cache_disable(self, value: bool) -> Self
Bits: 4..5
sourcepub fn set_cache_disable(&mut self, value: bool)
pub fn set_cache_disable(&mut self, value: bool)
Bits: 4..5
sourcepub const fn with_accessed(self, value: bool) -> Self
pub const fn with_accessed(self, value: bool) -> Self
Bits: 5..6
sourcepub fn set_accessed(&mut self, value: bool)
pub fn set_accessed(&mut self, value: bool)
Bits: 5..6
sourcepub const fn with_dirty(self, value: bool) -> Self
pub const fn with_dirty(self, value: bool) -> Self
Bits: 6..7
sourcepub const fn large_page(&self) -> bool
pub const fn large_page(&self) -> bool
Bits: 7..8
sourcepub const fn with_large_page(self, value: bool) -> Self
pub const fn with_large_page(self, value: bool) -> Self
Bits: 7..8
sourcepub fn set_large_page(&mut self, value: bool)
pub fn set_large_page(&mut self, value: bool)
Bits: 7..8
sourcepub const fn with_global(self, value: bool) -> Self
pub const fn with_global(self, value: bool) -> Self
Bits: 8..9
sourcepub fn set_global(&mut self, value: bool)
pub fn set_global(&mut self, value: bool)
Bits: 8..9
sourcepub const fn available0(&self) -> u64
pub const fn available0(&self) -> u64
Bits: 9..12
sourcepub const fn with_available0(self, value: u64) -> Self
pub const fn with_available0(self, value: u64) -> Self
Bits: 9..12
sourcepub fn set_available0(&mut self, value: u64)
pub fn set_available0(&mut self, value: u64)
Bits: 9..12
sourcepub const fn large_page_base(&self) -> u64
pub const fn large_page_base(&self) -> u64
Bits: 21..52
sourcepub const fn with_large_page_base(self, value: u64) -> Self
pub const fn with_large_page_base(self, value: u64) -> Self
Bits: 21..52
sourcepub fn set_large_page_base(&mut self, value: u64)
pub fn set_large_page_base(&mut self, value: u64)
Bits: 21..52
sourcepub const fn available1(&self) -> u64
pub const fn available1(&self) -> u64
Bits: 52..63
sourcepub const fn with_available1(self, value: u64) -> Self
pub const fn with_available1(self, value: u64) -> Self
Bits: 52..63
sourcepub fn set_available1(&mut self, value: u64)
pub fn set_available1(&mut self, value: u64)
Bits: 52..63
sourcepub const fn no_execute(&self) -> bool
pub const fn no_execute(&self) -> bool
Bits: 63..64
sourcepub const fn with_no_execute(self, value: bool) -> Self
pub const fn with_no_execute(self, value: bool) -> Self
Bits: 63..64
sourcepub fn set_no_execute(&mut self, value: bool)
pub fn set_no_execute(&mut self, value: bool)
Bits: 63..64
Trait Implementations§
source§impl AsBytes for LargePdewhere
u64: AsBytes,
impl AsBytes for LargePdewhere
u64: AsBytes,
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
source§impl FromBytes for LargePdewhere
u64: FromBytes,
impl FromBytes for LargePdewhere
u64: FromBytes,
§fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeroes for LargePdewhere
u64: FromZeroes,
impl FromZeroes for LargePdewhere
u64: FromZeroes,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self
from zeroed bytes. Read more§fn new_box_zeroed() -> Box<Self>where
Self: Sized,
fn new_box_zeroed() -> Box<Self>where
Self: Sized,
Creates a
Box<Self>
from zeroed bytes. Read moreimpl Copy for LargePde
impl Eq for LargePde
impl StructuralPartialEq for LargePde
Auto Trait Implementations§
impl Freeze for LargePde
impl RefUnwindSafe for LargePde
impl Send for LargePde
impl Sync for LargePde
impl Unpin for LargePde
impl UnwindSafe for LargePde
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)