Struct rustc_mir_transform::coverage::graph::BcbBranch
source · 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§
source§impl BcbBranch
impl BcbBranch
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>
pub fn is_only_path_to_target(&self) -> bool
Trait Implementations§
impl Copy for BcbBranch
impl Eq for BcbBranch
impl StructuralEq for BcbBranch
impl StructuralPartialEq for BcbBranch
Auto Trait Implementations§
impl RefUnwindSafe for BcbBranch
impl Send for BcbBranch
impl Sync for BcbBranch
impl Unpin for BcbBranch
impl UnwindSafe for BcbBranch
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: 8 bytes