Trait overflower_support::SubAssignPanic [] [src]

pub trait SubAssignPanic<RHS = Self> {
    fn sub_assign_panic(&mut self, rhs: RHS);
}

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

subtract the right-hand side value from this value, panicking on overflow

Implementors