Struct aarch64defs::Pte
source · pub struct Pte(/* private fields */);
Implementations§
source§impl Pte
impl Pte
sourcepub const fn with_valid(self, value: bool) -> Self
pub const fn with_valid(self, value: bool) -> Self
Bits: 0..1
sourcepub const fn not_large_page(&self) -> bool
pub const fn not_large_page(&self) -> bool
Bits: 1..2
sourcepub const fn with_not_large_page(self, value: bool) -> Self
pub const fn with_not_large_page(self, value: bool) -> Self
Bits: 1..2
sourcepub fn set_not_large_page(&mut self, value: bool)
pub fn set_not_large_page(&mut self, value: bool)
Bits: 1..2
sourcepub const fn attribute_index(&self) -> u64
pub const fn attribute_index(&self) -> u64
Bits: 2..5
sourcepub const fn with_attribute_index(self, value: u64) -> Self
pub const fn with_attribute_index(self, value: u64) -> Self
Bits: 2..5
sourcepub fn set_attribute_index(&mut self, value: u64)
pub fn set_attribute_index(&mut self, value: u64)
Bits: 2..5
sourcepub const fn non_secure(&self) -> bool
pub const fn non_secure(&self) -> bool
Bits: 5..6
sourcepub const fn with_non_secure(self, value: bool) -> Self
pub const fn with_non_secure(self, value: bool) -> Self
Bits: 5..6
sourcepub fn set_non_secure(&mut self, value: bool)
pub fn set_non_secure(&mut self, value: bool)
Bits: 5..6
sourcepub const fn ap_unprivileged(&self) -> bool
pub const fn ap_unprivileged(&self) -> bool
Bits: 6..7
sourcepub const fn with_ap_unprivileged(self, value: bool) -> Self
pub const fn with_ap_unprivileged(self, value: bool) -> Self
Bits: 6..7
sourcepub fn set_ap_unprivileged(&mut self, value: bool)
pub fn set_ap_unprivileged(&mut self, value: bool)
Bits: 6..7
sourcepub const fn ap_read_only(&self) -> bool
pub const fn ap_read_only(&self) -> bool
Bits: 7..8
sourcepub const fn with_ap_read_only(self, value: bool) -> Self
pub const fn with_ap_read_only(self, value: bool) -> Self
Bits: 7..8
sourcepub fn set_ap_read_only(&mut self, value: bool)
pub fn set_ap_read_only(&mut self, value: bool)
Bits: 7..8
Bits: 8..10
Bits: 8..10
Bits: 8..10
sourcepub const fn access_flag(&self) -> bool
pub const fn access_flag(&self) -> bool
Bits: 10..11
sourcepub const fn with_access_flag(self, value: bool) -> Self
pub const fn with_access_flag(self, value: bool) -> Self
Bits: 10..11
sourcepub fn set_access_flag(&mut self, value: bool)
pub fn set_access_flag(&mut self, value: bool)
Bits: 10..11
sourcepub const fn not_global(&self) -> bool
pub const fn not_global(&self) -> bool
Bits: 11..12
sourcepub const fn with_not_global(self, value: bool) -> Self
pub const fn with_not_global(self, value: bool) -> Self
Bits: 11..12
sourcepub fn set_not_global(&mut self, value: bool)
pub fn set_not_global(&mut self, value: bool)
Bits: 11..12
sourcepub const fn reserved_must_be_zero(&self) -> u64
pub const fn reserved_must_be_zero(&self) -> u64
Bits: 48..51
sourcepub const fn with_reserved_must_be_zero(self, value: u64) -> Self
pub const fn with_reserved_must_be_zero(self, value: u64) -> Self
Bits: 48..51
sourcepub fn set_reserved_must_be_zero(&mut self, value: u64)
pub fn set_reserved_must_be_zero(&mut self, value: u64)
Bits: 48..51
sourcepub const fn contiguous_hint(&self) -> bool
pub const fn contiguous_hint(&self) -> bool
Bits: 52..53
sourcepub const fn with_contiguous_hint(self, value: bool) -> Self
pub const fn with_contiguous_hint(self, value: bool) -> Self
Bits: 52..53
sourcepub fn set_contiguous_hint(&mut self, value: bool)
pub fn set_contiguous_hint(&mut self, value: bool)
Bits: 52..53
sourcepub const fn privilege_no_execute(&self) -> bool
pub const fn privilege_no_execute(&self) -> bool
Bits: 53..54
sourcepub const fn with_privilege_no_execute(self, value: bool) -> Self
pub const fn with_privilege_no_execute(self, value: bool) -> Self
Bits: 53..54
sourcepub fn set_privilege_no_execute(&mut self, value: bool)
pub fn set_privilege_no_execute(&mut self, value: bool)
Bits: 53..54
sourcepub const fn user_no_execute(&self) -> bool
pub const fn user_no_execute(&self) -> bool
Bits: 54..55
sourcepub const fn with_user_no_execute(self, value: bool) -> Self
pub const fn with_user_no_execute(self, value: bool) -> Self
Bits: 54..55
sourcepub fn set_user_no_execute(&mut self, value: bool)
pub fn set_user_no_execute(&mut self, value: bool)
Bits: 54..55
sourcepub const fn with_pxn_table(self, value: bool) -> Self
pub const fn with_pxn_table(self, value: bool) -> Self
Bits: 59..60
sourcepub fn set_pxn_table(&mut self, value: bool)
pub fn set_pxn_table(&mut self, value: bool)
Bits: 59..60
sourcepub const fn with_uxn_table(self, value: bool) -> Self
pub const fn with_uxn_table(self, value: bool) -> Self
Bits: 60..61
sourcepub fn set_uxn_table(&mut self, value: bool)
pub fn set_uxn_table(&mut self, value: bool)
Bits: 60..61
sourcepub const fn ap_table_privileged_only(&self) -> bool
pub const fn ap_table_privileged_only(&self) -> bool
Bits: 61..62
sourcepub const fn with_ap_table_privileged_only(self, value: bool) -> Self
pub const fn with_ap_table_privileged_only(self, value: bool) -> Self
Bits: 61..62
sourcepub fn set_ap_table_privileged_only(&mut self, value: bool)
pub fn set_ap_table_privileged_only(&mut self, value: bool)
Bits: 61..62
sourcepub const fn ap_table_read_only(&self) -> bool
pub const fn ap_table_read_only(&self) -> bool
Bits: 62..63
sourcepub const fn with_ap_table_read_only(self, value: bool) -> Self
pub const fn with_ap_table_read_only(self, value: bool) -> Self
Bits: 62..63
sourcepub fn set_ap_table_read_only(&mut self, value: bool)
pub fn set_ap_table_read_only(&mut self, value: bool)
Bits: 62..63
sourcepub const fn with_ns_table(self, value: bool) -> Self
pub const fn with_ns_table(self, value: bool) -> Self
Bits: 63..64
sourcepub fn set_ns_table(&mut self, value: bool)
pub fn set_ns_table(&mut self, value: bool)
Bits: 63..64
Trait Implementations§
source§impl AsBytes for Ptewhere
u64: AsBytes,
impl AsBytes for Ptewhere
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 Ptewhere
u64: FromBytes,
impl FromBytes for Ptewhere
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 Ptewhere
u64: FromZeroes,
impl FromZeroes for Ptewhere
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 Pte
impl Eq for Pte
impl StructuralPartialEq for Pte
Auto Trait Implementations§
impl Freeze for Pte
impl RefUnwindSafe for Pte
impl Send for Pte
impl Sync for Pte
impl Unpin for Pte
impl UnwindSafe for Pte
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
)