Module rules

Module rules 

Source
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.
RuleContext
A context for rewrite rules that don’t need dtype information.
TypedRuleContext
Typed context for rewrite rules that need access to dtype information.

Traits§

Matcher
Trait that abstracts over matching on expression types.
ParentReduceRule
A rewrite rule that can transform expressions based on parent context.
ReduceRule
A rewrite rule that transforms expressions without needing context.
RewriteContext
Sealed trait for rewrite rule contexts.