pub trait Operator: Send + Sync {
// Required method
fn execute(&self, ctx: &ExecutionContext) -> OperatorResult;
// Provided method
fn cost_estimate(&self, stats: &IndexStats) -> f64 { ... }
}Required Methods§
fn execute(&self, ctx: &ExecutionContext) -> OperatorResult
Provided Methods§
fn cost_estimate(&self, stats: &IndexStats) -> f64
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".