Skip to main content

fold

Function fold 

Source
pub fn fold(node: &Node) -> Node
Expand description

Folds constant sub-expressions in node with wrapping arithmetic.

Label-relative additions fold into the reference offset. Symbolic operands fold into shared Node::RustConst nodes.