#[repr(transparent)]pub struct CacheId(pub u8);Expand description
A cache whose events we would like to count.
This is used in the Cache type as part of the identification of a cache
event. Each variant here corresponds to a particular
PERF_COUNT_HW_CACHE_... constant supported by the perf_event_open
system call.
Tuple Fields§
§0: u8Implementations§
Trait Implementations§
impl Copy for CacheId
impl Eq for CacheId
impl StructuralPartialEq for CacheId
Auto Trait Implementations§
impl Freeze for CacheId
impl RefUnwindSafe for CacheId
impl Send for CacheId
impl Sync for CacheId
impl Unpin for CacheId
impl UnwindSafe for CacheId
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