pub enum RegionKind {
Code,
Expansion,
Skipped,
Gap,
Branch,
}
Expand description
The kind a code region can belong to. Take from the LLVM source code.
Variants§
Code
A CodeRegion associates some code with a counter
Expansion
An Expansion region represents a file expansion region that associates a source range with the expansion of a virtual source file, such as for a macro instantiation or #include file.
Skipped
A Skipped region represents a source range with code that was skipped by a preprocessor or similar means.
Gap
A Gap region is like a CodeRegion, but its count is only set as the line execution count when its the only region in the line.
Branch
A Branch region represents leaf-level boolean expressions and is associated with two counters, each representing the number of times the expression evaluates to true or false.
Trait Implementations§
Source§impl Debug for RegionKind
impl Debug for RegionKind
Source§impl PartialEq for RegionKind
impl PartialEq for RegionKind
Source§impl TryFrom<u64> for RegionKind
impl TryFrom<u64> for RegionKind
impl StructuralPartialEq for RegionKind
Auto Trait Implementations§
impl Freeze for RegionKind
impl RefUnwindSafe for RegionKind
impl Send for RegionKind
impl Sync for RegionKind
impl Unpin for RegionKind
impl UnwindSafe for RegionKind
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