pub struct Pte(/* private fields */);
Implementations§
Source§impl Pte
impl Pte
Sourcepub const fn with_valid_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_valid_checked(self, value: bool) -> Result<Self, ()>
Bits: 0..1
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_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_not_large_page_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_not_large_page(&mut self, value: bool)
pub const fn set_not_large_page(&mut self, value: bool)
Bits: 1..2
Sourcepub const fn set_not_large_page_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_not_large_page_checked( &mut self, value: bool, ) -> Result<(), ()>
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_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_attribute_index_checked(self, value: u64) -> Result<Self, ()>
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 const fn set_attribute_index(&mut self, value: u64)
pub const fn set_attribute_index(&mut self, value: u64)
Bits: 2..5
Sourcepub const fn set_attribute_index_checked(
&mut self,
value: u64,
) -> Result<(), ()>
pub const fn set_attribute_index_checked( &mut self, value: u64, ) -> Result<(), ()>
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_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_non_secure_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_non_secure(&mut self, value: bool)
pub const 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_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_ap_unprivileged_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_ap_unprivileged(&mut self, value: bool)
pub const fn set_ap_unprivileged(&mut self, value: bool)
Bits: 6..7
Sourcepub const fn set_ap_unprivileged_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_ap_unprivileged_checked( &mut self, value: bool, ) -> Result<(), ()>
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_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_ap_read_only_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_ap_read_only(&mut self, value: bool)
pub const fn set_ap_read_only(&mut self, value: bool)
Bits: 7..8
Bits: 8..10
Bits: 8..10
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_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_access_flag_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_access_flag(&mut self, value: bool)
pub const 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_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_not_global_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_not_global(&mut self, value: bool)
pub const fn set_not_global(&mut self, value: bool)
Bits: 11..12
Sourcepub const fn with_pfn_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_pfn_checked(self, value: u64) -> Result<Self, ()>
Bits: 12..48
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_checked(
self,
value: u64,
) -> Result<Self, ()>
pub const fn with_reserved_must_be_zero_checked( self, value: u64, ) -> Result<Self, ()>
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 const fn set_reserved_must_be_zero(&mut self, value: u64)
pub const fn set_reserved_must_be_zero(&mut self, value: u64)
Bits: 48..51
Sourcepub const fn set_reserved_must_be_zero_checked(
&mut self,
value: u64,
) -> Result<(), ()>
pub const fn set_reserved_must_be_zero_checked( &mut self, value: u64, ) -> Result<(), ()>
Bits: 48..51
Sourcepub const fn with_dbm_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_dbm_checked(self, value: bool) -> Result<Self, ()>
Bits: 51..52
Sourcepub const fn contiguous_hint(&self) -> bool
pub const fn contiguous_hint(&self) -> bool
Bits: 52..53
Sourcepub const fn with_contiguous_hint_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_contiguous_hint_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_contiguous_hint(&mut self, value: bool)
pub const fn set_contiguous_hint(&mut self, value: bool)
Bits: 52..53
Sourcepub const fn set_contiguous_hint_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_contiguous_hint_checked( &mut self, value: bool, ) -> Result<(), ()>
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_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_privilege_no_execute_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_privilege_no_execute(&mut self, value: bool)
pub const fn set_privilege_no_execute(&mut self, value: bool)
Bits: 53..54
Sourcepub const fn set_privilege_no_execute_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_privilege_no_execute_checked( &mut self, value: bool, ) -> Result<(), ()>
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_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_user_no_execute_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_user_no_execute(&mut self, value: bool)
pub const fn set_user_no_execute(&mut self, value: bool)
Bits: 54..55
Sourcepub const fn set_user_no_execute_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_user_no_execute_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 54..55
Sourcepub const fn with_pxn_table_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_pxn_table_checked(self, value: bool) -> Result<Self, ()>
Bits: 59..60
Sourcepub const fn with_pxn_table(self, value: bool) -> Self
pub const fn with_pxn_table(self, value: bool) -> Self
Bits: 59..60
Sourcepub const fn set_pxn_table(&mut self, value: bool)
pub const fn set_pxn_table(&mut self, value: bool)
Bits: 59..60
Sourcepub const fn with_uxn_table_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_uxn_table_checked(self, value: bool) -> Result<Self, ()>
Bits: 60..61
Sourcepub const fn with_uxn_table(self, value: bool) -> Self
pub const fn with_uxn_table(self, value: bool) -> Self
Bits: 60..61
Sourcepub const fn set_uxn_table(&mut self, value: bool)
pub const 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_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_ap_table_privileged_only_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_ap_table_privileged_only(&mut self, value: bool)
pub const fn set_ap_table_privileged_only(&mut self, value: bool)
Bits: 61..62
Sourcepub const fn set_ap_table_privileged_only_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_ap_table_privileged_only_checked( &mut self, value: bool, ) -> Result<(), ()>
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_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_ap_table_read_only_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_ap_table_read_only(&mut self, value: bool)
pub const fn set_ap_table_read_only(&mut self, value: bool)
Bits: 62..63
Sourcepub const fn set_ap_table_read_only_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_ap_table_read_only_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 62..63
Sourcepub const fn with_ns_table_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_ns_table_checked(self, value: bool) -> Result<Self, ()>
Bits: 63..64
Sourcepub const fn with_ns_table(self, value: bool) -> Self
pub const fn with_ns_table(self, value: bool) -> Self
Bits: 63..64
Sourcepub const fn set_ns_table(&mut self, value: bool)
pub const fn set_ns_table(&mut self, value: bool)
Bits: 63..64
Trait Implementations§
Source§impl FromBytes for Ptewhere
u64: FromBytes,
impl FromBytes for Ptewhere
u64: FromBytes,
§fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
&Self
. Read more§fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
Source§impl FromZeros for Ptewhere
u64: FromZeros,
impl FromZeros for Ptewhere
u64: FromZeros,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Self
from zeroed bytes. Read more§fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
Box<Self>
from zeroed bytes. Read more§fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
Vec<Self>
from zeroed bytes. Read moreSource§impl IntoBytes for Ptewhere
u64: IntoBytes,
impl IntoBytes for Ptewhere
u64: IntoBytes,
§fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl KnownLayout for Ptewhere
Self: Sized,
impl KnownLayout for Ptewhere
Self: Sized,
Source§type PointerMetadata = ()
type PointerMetadata = ()
Self
. Read more