referrerpolicy=no-referrer-when-downgrade

Trait bp_runtime::WeightExtraOps

source ·
pub trait WeightExtraOps {
    // Required method
    fn min_components_checked_div(&self, other: Weight) -> Option<u64>;
}
Expand description

All extra operations with weights that we need in bridges.

Required Methods§

source

fn min_components_checked_div(&self, other: Weight) -> Option<u64>

Checked division of individual components of two weights.

Divides components and returns minimal division result. Returns None if one of other weight components is zero.

Implementations on Foreign Types§

source§

impl WeightExtraOps for Weight

source§

fn min_components_checked_div(&self, other: Weight) -> Option<u64>

Implementors§