Module transform

Module transform 

Source
Expand description

A collection of transformations that can be applied to a crate::ExprRef.

Modules§

annotations
immediate_access

Structs§

PartitionedExpr
The result of partitioning an expression.

Functions§

partition
Partition an expression into sub-expressions that are uniquely associated with an annotation. A root expression is also returned that can be used to recombine the results of the partitions into the result of the original expression.
replace
Replaces all occurrences of needle in the expression expr with replacement.
replace_root_fields
Expand the root expression with a pack of the given struct fields.
simplify
Simplifies an expression into an equivalent expression which is faster and easier to analyze.
simplify_typed
Unlike simplify, this function simplifies an expression under the assumption that scope is a known DType. Simplified is applied first and then additional rules.