pub trait SubAssignPanic<RHS = Self> {
// Required method
fn sub_assign_panic(&mut self, rhs: RHS);
}
Expand description
SUbtract a value from a given value in-place, panicking on overflow
This trait does the same as the std::ops::SubAssign
trait for most values.
it is specialized for integer types to panic on over- or underflow.
Required Methods§
Sourcefn sub_assign_panic(&mut self, rhs: RHS)
fn sub_assign_panic(&mut self, rhs: RHS)
subtract the right-hand side value from this value, panicking on overflow