rustc_mir_transform::coverage::counters

Function sibling_out_edge_targets

Source
fn sibling_out_edge_targets(
    graph: &CoverageGraph,
    from_bcb: BasicCoverageBlock,
    to_bcb: BasicCoverageBlock,
) -> impl Iterator<Item = BasicCoverageBlock> + Captures<'_>
Expand description

Yields the graph successors of from_bcb that aren’t to_bcb. This is used when creating a counter expression for SiteCounter::EdgeDiffExpr.

For example, in this diagram the sibling out-edge targets of edge AC are the nodes B and D.

   A
 / | \
B  C  D