Enum rustc_codegen_llvm::llvm::coverageinfo::RegionKind
source · #[repr(C)]
pub enum RegionKind {
CodeRegion,
ExpansionRegion,
SkippedRegion,
GapRegion,
BranchRegion,
}
Expand description
Aligns with llvm::coverage::CounterMappingRegion::RegionKind
Variants§
CodeRegion
A CodeRegion associates some code with a counter
ExpansionRegion
An ExpansionRegion 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.
SkippedRegion
A SkippedRegion represents a source range with code that was skipped by a preprocessor or similar means.
GapRegion
A GapRegion is like a CodeRegion, but its count is only set as the line execution count when its the only region in the line.
BranchRegion
A BranchRegion 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 Clone for RegionKind
impl Clone for RegionKind
source§fn clone(&self) -> RegionKind
fn clone(&self) -> RegionKind
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RegionKind
impl Debug for RegionKind
impl Copy for RegionKind
Auto Trait Implementations§
impl RefUnwindSafe for RegionKind
impl Send for RegionKind
impl Sync for RegionKind
impl Unpin for RegionKind
impl UnwindSafe for RegionKind
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes
Size for each variant:
CodeRegion
: 0 bytesExpansionRegion
: 0 bytesSkippedRegion
: 0 bytesGapRegion
: 0 bytesBranchRegion
: 0 bytes