pub trait Transform: Debug {
    // Required method
    fn transform(
        &self,
        relation: &mut MirRelationExpr,
        ctx: &mut TransformCtx<'_>
    ) -> Result<(), TransformError>;

    // Provided method
    fn debug(&self) -> String { ... }
}
Expand description

Types capable of transforming relation expressions.

Required Methods§

source

fn transform( &self, relation: &mut MirRelationExpr, ctx: &mut TransformCtx<'_> ) -> Result<(), TransformError>

Transform a relation into a functionally equivalent relation.

Provided Methods§

source

fn debug(&self) -> String

A string describing the transform.

This is useful mainly when iterating through many Box<Transform> and one wants to judge progress before some defect occurs.

Implementors§