pub trait CostModel: Send + Sync {
// Required method
fn estimate(&self, plan: &LogicalPlan) -> Cost;
}Expand description
Estimates the cost of executing a LogicalPlan.
Required Methods§
Sourcefn estimate(&self, plan: &LogicalPlan) -> Cost
fn estimate(&self, plan: &LogicalPlan) -> Cost
Return an estimated Cost for the given logical plan.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".