pub trait FactorizedSchemaCompute {
// Required methods
fn compute_factorized_schema(
&mut self,
child_schemas: &[FactorizedSchema],
) -> Result<FactorizedSchema, FactorizationError>;
fn compute_flat_schema(
&mut self,
child_schemas: &[FactorizedSchema],
) -> Result<FactorizedSchema, FactorizationError>;
}Expand description
Trait for operators that can compute factorized schemas.
child_schemas must be the bottom-up computed results for the direct children;
passing an empty slice forces recomputation and violates the factorization invariant.
Required Methods§
fn compute_factorized_schema( &mut self, child_schemas: &[FactorizedSchema], ) -> Result<FactorizedSchema, FactorizationError>
fn compute_flat_schema( &mut self, child_schemas: &[FactorizedSchema], ) -> Result<FactorizedSchema, FactorizationError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".