Expand description
Traits for extensible expression rewrite rules.
These traits allow external crates to define custom expression optimization rules that can be registered with the expression session.
Structs§
- Any
- Marker type representing “any” - matches all expressions.
- Exact
- Marker type representing a specific VTable type as a matcher.
- Rule
Context - A context for rewrite rules that don’t need dtype information.
- Typed
Rule Context - Typed context for rewrite rules that need access to dtype information.
Traits§
- Matcher
- Trait that abstracts over matching on expression types.
- Parent
Reduce Rule - A rewrite rule that can transform expressions based on parent context.
- Reduce
Rule - A rewrite rule that transforms expressions without needing context.
- Rewrite
Context - Sealed trait for rewrite rule contexts.