Module transform

Module transform 

Source
Expand description

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

Modules§

rules
Traits for extensible expression rewrite rules.

Structs§

ExprOptimizer
A unified optimizer for expressions that can work with or without type information.
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.