pub trait WeightsFunction {
// Required method
fn weight(&self, pos: usize, max_pos: usize) -> Weight;
}Expand description
Represents a function that maps a position to a weight.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".