#[non_exhaustive]pub struct Cache {
pub level: u8,
pub kind: CacheKind,
pub size: Bytes,
pub line: u32,
pub shared_by: Vec<u32>,
}Expand description
A CPU cache.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.level: u81 for L1, and so on.
kind: CacheKindWhat it holds.
size: BytesIts size.
line: u32Its line size in bytes.
The logical CPUs sharing this cache instance.
Trait Implementations§
impl Eq for Cache
impl StructuralPartialEq for Cache
Auto Trait Implementations§
impl Forget for Cache
impl Freeze for Cache
impl RefUnwindSafe for Cache
impl Send for Cache
impl Sync for Cache
impl Unpin for Cache
impl UnsafeUnpin for Cache
impl UnwindSafe for Cache
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