Skip to main content

Weight

Trait Weight 

Source
pub trait Weight {
    // Required method
    fn weight_units(&self) -> WeightUnits;

    // Provided method
    fn vbytes(&self) -> VBytes { ... }
}

Required Methods§

Provided Methods§

Source

fn vbytes(&self) -> VBytes

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§