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