pub trait Weight {
// Required method
fn weight_units(&self) -> WeightUnits;
// Provided method
fn vbytes(&self) -> VBytes { ... }
}Required Methods§
fn weight_units(&self) -> WeightUnits
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".