pub trait AdaptWeight<S: 'static, O: Operator<S>, W, Sc>: Send + Sync {
type RowWeight: RowWeight<S, O, Sc>;
// Required methods
fn adapt(&self, weight: W) -> Self::RowWeight;
fn is_hard(&self, weight: &W) -> bool;
}Expand description
Turns an authored weight W into a RowWeight for operator O’s
rows.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".