Skip to main content

IntoWeight

Trait IntoWeight 

Source
pub trait IntoWeight {
    // Required method
    fn into_weight(self) -> Weight;
}
Expand description

Converts Self into a Weight by using Self for all components.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoWeight for u64

Implementors§