pub trait EditWeight {
// Required methods
fn add_cost(&self) -> usize;
fn rm_cost(&self) -> usize;
fn sub_cost(&self, other: &Self) -> usize;
}Expand description
Trait for types that have custom costs for addition/removal and substitution.
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.