pub struct PpttCacheFlags(/* private fields */);
Implementations§
Source§impl PpttCacheFlags
impl PpttCacheFlags
Sourcepub const fn size_valid(&self) -> bool
pub const fn size_valid(&self) -> bool
Bits: 0..1
Sourcepub const fn with_size_valid_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_size_valid_checked(self, value: bool) -> Result<Self, ()>
Bits: 0..1
Sourcepub const fn with_size_valid(self, value: bool) -> Self
pub const fn with_size_valid(self, value: bool) -> Self
Bits: 0..1
Sourcepub const fn set_size_valid(&mut self, value: bool)
pub const fn set_size_valid(&mut self, value: bool)
Bits: 0..1
Sourcepub const fn number_of_sets_valid(&self) -> bool
pub const fn number_of_sets_valid(&self) -> bool
Bits: 1..2
Sourcepub const fn with_number_of_sets_valid_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_number_of_sets_valid_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 1..2
Sourcepub const fn with_number_of_sets_valid(self, value: bool) -> Self
pub const fn with_number_of_sets_valid(self, value: bool) -> Self
Bits: 1..2
Sourcepub const fn set_number_of_sets_valid(&mut self, value: bool)
pub const fn set_number_of_sets_valid(&mut self, value: bool)
Bits: 1..2
Sourcepub const fn set_number_of_sets_valid_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_number_of_sets_valid_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 1..2
Sourcepub const fn associativity_valid(&self) -> bool
pub const fn associativity_valid(&self) -> bool
Bits: 2..3
Sourcepub const fn with_associativity_valid_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_associativity_valid_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 2..3
Sourcepub const fn with_associativity_valid(self, value: bool) -> Self
pub const fn with_associativity_valid(self, value: bool) -> Self
Bits: 2..3
Sourcepub const fn set_associativity_valid(&mut self, value: bool)
pub const fn set_associativity_valid(&mut self, value: bool)
Bits: 2..3
Sourcepub const fn set_associativity_valid_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_associativity_valid_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 2..3
Sourcepub const fn allocation_type_valid(&self) -> bool
pub const fn allocation_type_valid(&self) -> bool
Bits: 3..4
Sourcepub const fn with_allocation_type_valid_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_allocation_type_valid_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 3..4
Sourcepub const fn with_allocation_type_valid(self, value: bool) -> Self
pub const fn with_allocation_type_valid(self, value: bool) -> Self
Bits: 3..4
Sourcepub const fn set_allocation_type_valid(&mut self, value: bool)
pub const fn set_allocation_type_valid(&mut self, value: bool)
Bits: 3..4
Sourcepub const fn set_allocation_type_valid_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_allocation_type_valid_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 3..4
Sourcepub const fn cache_type_valid(&self) -> bool
pub const fn cache_type_valid(&self) -> bool
Bits: 4..5
Sourcepub const fn with_cache_type_valid_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_cache_type_valid_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 4..5
Sourcepub const fn with_cache_type_valid(self, value: bool) -> Self
pub const fn with_cache_type_valid(self, value: bool) -> Self
Bits: 4..5
Sourcepub const fn set_cache_type_valid(&mut self, value: bool)
pub const fn set_cache_type_valid(&mut self, value: bool)
Bits: 4..5
Sourcepub const fn set_cache_type_valid_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_cache_type_valid_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 4..5
Sourcepub const fn write_policy_valid(&self) -> bool
pub const fn write_policy_valid(&self) -> bool
Bits: 5..6
Sourcepub const fn with_write_policy_valid_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_write_policy_valid_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 5..6
Sourcepub const fn with_write_policy_valid(self, value: bool) -> Self
pub const fn with_write_policy_valid(self, value: bool) -> Self
Bits: 5..6
Sourcepub const fn set_write_policy_valid(&mut self, value: bool)
pub const fn set_write_policy_valid(&mut self, value: bool)
Bits: 5..6
Sourcepub const fn set_write_policy_valid_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_write_policy_valid_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 5..6
Sourcepub const fn line_size_valid(&self) -> bool
pub const fn line_size_valid(&self) -> bool
Bits: 6..7
Sourcepub const fn with_line_size_valid_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_line_size_valid_checked(self, value: bool) -> Result<Self, ()>
Bits: 6..7
Sourcepub const fn with_line_size_valid(self, value: bool) -> Self
pub const fn with_line_size_valid(self, value: bool) -> Self
Bits: 6..7
Sourcepub const fn set_line_size_valid(&mut self, value: bool)
pub const fn set_line_size_valid(&mut self, value: bool)
Bits: 6..7
Sourcepub const fn set_line_size_valid_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_line_size_valid_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 6..7
Sourcepub const fn cache_id_valid(&self) -> bool
pub const fn cache_id_valid(&self) -> bool
Bits: 7..8
Sourcepub const fn with_cache_id_valid_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_cache_id_valid_checked(self, value: bool) -> Result<Self, ()>
Bits: 7..8
Sourcepub const fn with_cache_id_valid(self, value: bool) -> Self
pub const fn with_cache_id_valid(self, value: bool) -> Self
Bits: 7..8
Sourcepub const fn set_cache_id_valid(&mut self, value: bool)
pub const fn set_cache_id_valid(&mut self, value: bool)
Bits: 7..8
Trait Implementations§
Source§impl Clone for PpttCacheFlags
impl Clone for PpttCacheFlags
Source§fn clone(&self) -> PpttCacheFlags
fn clone(&self) -> PpttCacheFlags
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PpttCacheFlags
impl Debug for PpttCacheFlags
Source§impl Default for PpttCacheFlags
impl Default for PpttCacheFlags
Source§impl From<PpttCacheFlags> for u32
impl From<PpttCacheFlags> for u32
Source§fn from(v: PpttCacheFlags) -> u32
fn from(v: PpttCacheFlags) -> u32
Converts to this type from the input type.
Source§impl From<u32> for PpttCacheFlags
impl From<u32> for PpttCacheFlags
impl Copy for PpttCacheFlags
Auto Trait Implementations§
impl Freeze for PpttCacheFlags
impl RefUnwindSafe for PpttCacheFlags
impl Send for PpttCacheFlags
impl Sync for PpttCacheFlags
impl Unpin for PpttCacheFlags
impl UnwindSafe for PpttCacheFlags
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