pub enum CacheLevel {
L1,
L2,
L3,
Other(u8),
}Expand description
Identifier for the cache hierarchy level being queried.
Variants§
L1
Level 1 cache.
L2
Level 2 cache.
L3
Level 3 cache.
Other(u8)
Any other cache level that is not explicitly represented above.
Implementations§
Source§impl CacheLevel
impl CacheLevel
Trait Implementations§
Source§impl Clone for CacheLevel
impl Clone for CacheLevel
Source§fn clone(&self) -> CacheLevel
fn clone(&self) -> CacheLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CacheLevel
Source§impl Debug for CacheLevel
impl Debug for CacheLevel
impl Eq for CacheLevel
Source§impl From<CacheLevel> for u8
impl From<CacheLevel> for u8
Source§fn from(level: CacheLevel) -> Self
fn from(level: CacheLevel) -> Self
Converts to this type from the input type.
Source§impl From<u8> for CacheLevel
impl From<u8> for CacheLevel
Source§impl PartialEq for CacheLevel
impl PartialEq for CacheLevel
impl StructuralPartialEq for CacheLevel
Auto Trait Implementations§
impl Freeze for CacheLevel
impl RefUnwindSafe for CacheLevel
impl Send for CacheLevel
impl Sync for CacheLevel
impl Unpin for CacheLevel
impl UnsafeUnpin for CacheLevel
impl UnwindSafe for CacheLevel
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