pub struct CounterId {
private_use_as_methods_instead: u32,
}
Expand description
ID of a coverage counter. Values ascend from 0.
Before MIR inlining, counter IDs are local to their enclosing function. After MIR inlining, coverage statements may have been inlined into another function, so use the statement’s source-scope to find which function/instance its IDs are meaningful for.
Note that LLVM handles counter IDs as uint32_t
, so there is no need
to use a larger representation on the Rust side.
Fields§
§private_use_as_methods_instead: u32
Auto Trait Implementations§
impl Freeze for CounterId
impl RefUnwindSafe for CounterId
impl Send for CounterId
impl Sync for CounterId
impl Unpin for CounterId
impl UnwindSafe for CounterId
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