pub struct ExpressionId {
private_use_as_methods_instead: u32,
}
Expand description
ID of a coverage-counter expression. Values ascend from 0.
Before MIR inlining, expression 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 expression 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 ExpressionId
impl RefUnwindSafe for ExpressionId
impl Send for ExpressionId
impl Sync for ExpressionId
impl Unpin for ExpressionId
impl UnwindSafe for ExpressionId
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