pub trait IntOpswhere
Self: Sized,{
// Required methods
fn wrapping_add<T: Into<Self>>(self, rhs: T) -> Self;
fn wrapping_sub<T: Into<Self>>(self, rhs: T) -> Self;
fn wrapping_mul<T: Into<Self>>(self, rhs: T) -> Self;
fn wrapping_neg(self) -> Self;
fn rotate_left(self, rhs: u32) -> Self;
fn rotate_right(self, rhs: u32) -> Self;
}Expand description
A trait for integer operations provided by Rust for machine integers
Required Methods§
fn wrapping_add<T: Into<Self>>(self, rhs: T) -> Self
fn wrapping_sub<T: Into<Self>>(self, rhs: T) -> Self
fn wrapping_mul<T: Into<Self>>(self, rhs: T) -> Self
fn wrapping_neg(self) -> Self
fn rotate_left(self, rhs: u32) -> Self
fn rotate_right(self, rhs: u32) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.