Expand description
A collection of transformations that can be applied to a crate::ExprRef
.
Modules§
Structs§
- Partitioned
Expr - 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 expressionexpr
withreplacement
. - 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.