Skip to main content

cut_as_segment

Function cut_as_segment 

Source
fn cut_as_segment(node: &NativeNode, canonical_segmentation: bool) -> bool
Expand description

Whether node becomes a segment of its own under a parent that must gather.

Cut local prefixes, global consumers and canonical merges separately so the prefix keeps its scan width, and every global consumer sees the canonical boundary below it. A pointwise wrapper of a global consumer is cut as well, so it cannot hide that consumer from recursive lowering.