pub trait Integer:
Number
+ Not<Output = Self>
+ BitAnd<Output = Self>
+ BitAndAssign
+ BitOr<Output = Self>
+ BitOrAssign
+ BitXor<Output = Self>
+ BitXorAssign
+ Shl<Output = Self>
+ Shl<u32, Output = Self>
+ ShlAssign
+ ShlAssign<u32>
+ Shr<Output = Self>
+ Shr<u32, Output = Self>
+ ShrAssign
+ ShrAssign<u32>
+ TryInto<i128> {
// Required methods
fn checked_add(self, rhs: Self) -> Option<Self>;
fn checked_sub(self, rhs: Self) -> Option<Self>;
fn checked_mul(self, rhs: Self) -> Option<Self>;
fn trailing_ones(self) -> u32;
fn trailing_zeros(self) -> u32;
}
Expand description
Trait implemented by the primitive integer types.
Required Methods§
fn checked_add(self, rhs: Self) -> Option<Self>
fn checked_sub(self, rhs: Self) -> Option<Self>
fn checked_mul(self, rhs: Self) -> Option<Self>
fn trailing_ones(self) -> u32
fn trailing_zeros(self) -> u32
Object Safety§
This trait is not object safe.