pub trait StrictAddSigned: Sized {
type Signed;
type Output;
// Required method
fn strict_add_signed(self, rhs: Self::Signed) -> Self::Output;
}Expand description
Strict addition of a signed value to an unsigned value.
Required Associated Types§
Required Methods§
Sourcefn strict_add_signed(self, rhs: Self::Signed) -> Self::Output
fn strict_add_signed(self, rhs: Self::Signed) -> Self::Output
Computes self + rhs, panicking on overflow even in release builds.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".