mz_transform::analysis::common

Trait AnalysisBundle

Source
trait AnalysisBundle: Any {
    // Required methods
    fn analyse(&mut self, exprs: &[&MirRelationExpr], depends: &Derived) -> bool;
    fn as_any(&self) -> &dyn Any;
}
Expand description

An abstraction for an analysis and associated state.

Required Methods§

Source

fn analyse(&mut self, exprs: &[&MirRelationExpr], depends: &Derived) -> bool

Populates internal state for all of exprs.

Result indicates whether new information was produced for exprs.last().

Source

fn as_any(&self) -> &dyn Any

Upcasts self to a &dyn Any.

NOTE: This is required until https://github.com/rust-lang/rfcs/issues/2765 is fixed

Implementors§