Skip to main content

CostModel

Trait CostModel 

Source
pub trait CostModel: Send + Sync {
    // Required method
    fn estimate(&self, plan: &LogicalPlan) -> Cost;
}
Expand description

Estimates the cost of executing a LogicalPlan.

Required Methods§

Source

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".

Implementors§