#[repr(transparent)]pub struct PerfctrEn(pub u32);
Expand description
Enable the performance counters. If 0, the performance counters do not increment. This can be used to precisely start/stop event sampling around the profiled section of code. The performance counters are initially disabled, to save energy.
Tuple Fields§
§0: u32
Implementations§
source§impl PerfctrEn
impl PerfctrEn
pub const fn perfctr_en(&self) -> bool
pub fn set_perfctr_en(&mut self, val: bool)
Trait Implementations§
impl Copy for PerfctrEn
impl Eq for PerfctrEn
impl StructuralPartialEq for PerfctrEn
Auto Trait Implementations§
impl Freeze for PerfctrEn
impl RefUnwindSafe for PerfctrEn
impl Send for PerfctrEn
impl Sync for PerfctrEn
impl Unpin for PerfctrEn
impl UnwindSafe for PerfctrEn
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)