pub struct CacheInfo {
pub level: CacheLevel,
pub cache_type: CacheType,
pub line_size: u32,
pub ways: u32,
pub sets: u32,
pub total_size: u64,
}Expand description
Information about a single cache level
Fields§
§level: CacheLevelCache level (L1, L2, L3)
cache_type: CacheTypeCache type (data, instruction, unified)
line_size: u32Cache line size in bytes
ways: u32Number of ways of associativity
sets: u32Number of sets
total_size: u64Total cache size in bytes (line_size * ways * sets)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CacheInfo
impl RefUnwindSafe for CacheInfo
impl Send for CacheInfo
impl Sync for CacheInfo
impl Unpin for CacheInfo
impl UnwindSafe for CacheInfo
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)