IntOps

Trait IntOps 

Source
pub trait IntOps
where 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§

Source

fn wrapping_add<T: Into<Self>>(self, rhs: T) -> Self

Source

fn wrapping_sub<T: Into<Self>>(self, rhs: T) -> Self

Source

fn wrapping_mul<T: Into<Self>>(self, rhs: T) -> Self

Source

fn wrapping_neg(self) -> Self

Source

fn rotate_left(self, rhs: u32) -> Self

Source

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.

Implementors§