SpantreeEdge in rustc_mir_transform::coverage::counters::node_flow - Rust (original) (raw)
Struct SpantreeEdge
struct SpantreeEdge<Node> {
is_reversed: bool,
claiming_node: Node,
span_parent: Node,
}
If true, this edge in the spantree has been reversed an odd number of times, so all physical counters added to its node’s counter expression need to be negated.
Each spantree edge is “claimed” by the (regular) node that caused it to be created. When a node with a physical counter traverses this edge, that counter is added to the claiming node’s counter expression.
Supernode at the other end of this spantree edge. Transitively points to the “root” of this supernode’s spantree component.
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.