pub trait OverflowingAddSigned: Sized {
type Signed;
type Output;
// Required method
fn overflowing_add_signed(self, rhs: Self::Signed) -> (Self::Output, bool);
}Expand description
Overflowing addition of a signed value to an unsigned value.
Required Associated Types§
Required Methods§
Sourcefn overflowing_add_signed(self, rhs: Self::Signed) -> (Self::Output, bool)
fn overflowing_add_signed(self, rhs: Self::Signed) -> (Self::Output, bool)
Computes self + rhs, returning the wrapped sum and whether overflow
occurred.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".