pub trait StrictAddUnsigned: Sized {
type Unsigned;
type Output;
// Required method
fn strict_add_unsigned(self, rhs: Self::Unsigned) -> Self::Output;
}Expand description
Strict addition of an unsigned value to a signed value.
Required Associated Types§
Required Methods§
Sourcefn strict_add_unsigned(self, rhs: Self::Unsigned) -> Self::Output
fn strict_add_unsigned(self, rhs: Self::Unsigned) -> 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".