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§
sourcefn min_components_checked_div(&self, other: Weight) -> Option<u64>
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.