pub trait Cost {
// Required methods
fn identity() -> Self;
fn unit() -> Self;
fn combine(self, other: &Self) -> Self;
}Expand description
Requirements for a type to be usable as a cost by a CostModel.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.