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: BasicCoverageBlockImplementations
pub fn from_to(
from_bcb: BasicCoverageBlock,
to_bcb: BasicCoverageBlock,
basic_coverage_blocks: &CoverageGraph
) -> Selfpub fn counter<'a>(
&self,
basic_coverage_blocks: &'a CoverageGraph
) -> Option<&'a CoverageKind>Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BcbBranchimpl UnwindSafe for BcbBranchBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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