#[repr(u8)]pub enum CacheType {
None = 0,
Instruction = 1,
Data = 2,
Separate = 3,
Unified = 4,
}Expand description
The type of cache implemented at a given level, per the ctype<n> fields
of CacheLevelIdRegister.
Variants§
None = 0
No cache at this level; no caches exist at higher levels either.
Instruction = 1
Data = 2
Separate = 3
Separate instruction and data caches.
Unified = 4
Implementations§
Source§impl CacheType
impl CacheType
pub const fn has_instruction_cache(self) -> bool
pub const fn has_data_cache(self) -> bool
Trait Implementations§
impl Copy for CacheType
impl Eq for CacheType
impl Immutable for CacheType
Source§impl IntoBytes for CacheTypewhere
(): PaddingFree<Self, { _ }>,
impl IntoBytes for CacheTypewhere
(): PaddingFree<Self, { _ }>,
impl StructuralPartialEq for CacheType
Source§impl TryFromBytes for CacheType
impl TryFromBytes for CacheType
Source§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<!, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<!, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<!, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<!, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<!, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<!, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for CacheType
impl RefUnwindSafe for CacheType
impl Send for CacheType
impl Sync for CacheType
impl Unpin for CacheType
impl UnsafeUnpin for CacheType
impl UnwindSafe for CacheType
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)