Struct rustc_mir_transform::coverage::graph::BcbBranch [−][src]
pub(super) struct BcbBranch {
pub edge_from_bcb: Option<BasicCoverageBlock>,
pub target_bcb: BasicCoverageBlock,
}
Expand description
Represents a successor from a branching BasicCoverageBlock (such as the arms of a SwitchInt
)
as either the successor BCB itself, if it has only one incoming edge, or the successor plus
the specific branching BCB, representing the edge between the two. The latter case
distinguishes this incoming edge from other incoming edges to the same target_bcb
.
Fields
edge_from_bcb: Option<BasicCoverageBlock>
target_bcb: BasicCoverageBlock
Implementations
pub fn from_to(
from_bcb: BasicCoverageBlock,
to_bcb: BasicCoverageBlock,
basic_coverage_blocks: &CoverageGraph
) -> Self
pub fn counter<'a>(
&self,
basic_coverage_blocks: &'a CoverageGraph
) -> Option<&'a CoverageKind>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BcbBranch
impl UnwindSafe for BcbBranch
Blanket Implementations
Mutably borrows from an owned value. Read more
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: 8 bytes