pub trait MstWeight:
Ord
+ Clone
+ Default {
// Required method
fn checked_add(&self, rhs: &Self) -> Option<Self>;
}Expand description
Integer weights that can report overflow while summing MST totals.
Required Methods§
Sourcefn checked_add(&self, rhs: &Self) -> Option<Self>
fn checked_add(&self, rhs: &Self) -> Option<Self>
Returns self + rhs, or None when the sum overflows.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".