Int

Trait Int 

Source
pub unsafe trait Int
where Self: Int + 'static + Any + Binary + CloneToUninit + ConstParamTy_ + Copy + Debug + Default + Display + Eq + Freeze + From<bool> + From<i8> + FromStr + Hash + LowerExp + LowerHex + NumBufferTrait + Octal + Ord + PartialEq + PartialOrd + Product + RefUnwindSafe + Send + Step + StructuralPartialEq + Sum + Sync + Thin + ToOwned + ToString + TrustedStep + TryFrom<bool, Error = Infallible> + TryFrom<i128> + TryFrom<i16> + TryFrom<i32> + TryFrom<i64> + TryFrom<i8, Error = Infallible> + TryFrom<isize> + TryFrom<u128> + TryFrom<u16> + TryFrom<u32> + TryFrom<u64> + TryFrom<u8> + TryFrom<usize> + TryInto<i128> + TryInto<i16> + TryInto<i32> + TryInto<i64> + TryInto<i8> + TryInto<isize> + TryInto<u128> + TryInto<u16> + TryInto<u32> + TryInto<u64> + TryInto<u8> + TryInto<usize> + Unpin + UnwindSafe + UpperExp + UpperHex + UseCloned + Add<Output = Self> + BitAnd<Output = Self> + BitOr<Output = Self> + BitXor<Output = Self> + Div<Output = Self> + Mul<Output = Self> + Neg<Output = Self> + Not<Output = Self> + Rem<Output = Self> + Shl<Output = Self> + Shl<u8, Output = Self> + Shl<u16, Output = Self> + Shl<u32, Output = Self> + Shl<u64, Output = Self> + Shl<u128, Output = Self> + Shl<usize, Output = Self> + Shl<i8, Output = Self> + Shl<i16, Output = Self> + Shl<i32, Output = Self> + Shl<i64, Output = Self> + Shl<i128, Output = Self> + Shl<isize, Output = Self> + Shr<Output = Self> + Shr<u8, Output = Self> + Shr<u16, Output = Self> + Shr<u32, Output = Self> + Shr<u64, Output = Self> + Shr<u128, Output = Self> + Shr<usize, Output = Self> + Shr<i8, Output = Self> + Shr<i16, Output = Self> + Shr<i32, Output = Self> + Shr<i64, Output = Self> + Shr<i128, Output = Self> + Shr<isize, Output = Self> + Sub<Output = Self> + AddAssign + BitAndAssign + BitOrAssign + BitXorAssign + DivAssign + MulAssign + RemAssign + ShlAssign + ShlAssign<u8> + ShlAssign<u16> + ShlAssign<u32> + ShlAssign<u64> + ShlAssign<u128> + ShlAssign<usize> + ShlAssign<i8> + ShlAssign<i16> + ShlAssign<i32> + ShlAssign<i64> + ShlAssign<i128> + ShlAssign<isize> + ShrAssign + ShrAssign<u8> + ShrAssign<u16> + ShrAssign<u32> + ShrAssign<u64> + ShrAssign<u128> + ShrAssign<usize> + ShrAssign<i8> + ShrAssign<i16> + ShrAssign<i32> + ShrAssign<i64> + ShrAssign<i128> + ShrAssign<isize> + SubAssign,
{ type Uint: Uint<Int = Self, Bytes = Self::Bytes>; type Bytes: Array<Scalar = u8> + 'static + Any + CloneToUninit + ConstParamTy_ + Copy + Debug + Eq + Freeze + Hash + Ord + PartialEq + PartialEq<[u8]> + PartialOrd + RefUnwindSafe + Send + Sync + ToOwned + Unpin + UnwindSafe; const BITS: u32; const MIN: Self; const MAX: Self; const ZERO: Self; const ONE: Self;
Show 132 methods // Required methods fn from_le(value: Self) -> Self; fn from_be(value: Self) -> Self; fn from_ne_bytes(bytes: Self::Bytes) -> Self; fn from_le_bytes(bytes: Self::Bytes) -> Self; fn from_be_bytes(bytes: Self::Bytes) -> Self; fn from_str_radix(s: &str, radix: u32) -> Result<Self, ParseIntError>; fn widening_mul(self, rhs: Self) -> (Self::Uint, Self); fn div_floor(self, rhs: Self) -> Self; fn div_euclid(self, rhs: Self) -> Self; fn exact_div(self, rhs: Self) -> Self; fn rem_euclid(self, rhs: Self) -> Self; fn exact_shl(self, rhs: u32) -> Option<Self>; fn exact_shr(self, rhs: u32) -> Option<Self>; fn rotate_left(self, rhs: u32) -> Self; fn rotate_right(self, rhs: u32) -> Self; fn swap_bytes(self) -> Self; fn reverse_bits(self) -> Self; fn abs(self) -> Self; fn unsigned_abs(self) -> Self::Uint; fn pow(self, exp: u32) -> Self; fn isqrt(self) -> Self; fn ilog(self, base: Self) -> u32; fn ilog2(self) -> u32; fn ilog10(self) -> u32; fn abs_diff(self, rhs: Self) -> Self::Uint; fn midpoint(self, rhs: Self) -> Self; fn next_multiple_of(self, rhs: Self) -> Self; fn isolate_lowest_one(self) -> Self; fn isolate_highest_one(self) -> Self; fn lowest_one(self) -> Option<u32>; fn highest_one(self) -> Option<u32>; fn count_zeros(self) -> u32; fn count_ones(self) -> u32; fn leading_zeros(self) -> u32; fn leading_ones(self) -> u32; fn trailing_zeros(self) -> u32; fn trailing_ones(self) -> u32; fn signum(self) -> Self; fn is_negative(self) -> bool; fn is_positive(self) -> bool; fn is_multiple_of(self, rhs: Self) -> bool; fn checked_add(self, rhs: Self) -> Option<Self>; fn checked_add_unsigned(self, rhs: Self::Uint) -> Option<Self>; fn checked_sub(self, rhs: Self) -> Option<Self>; fn checked_sub_unsigned(self, rhs: Self::Uint) -> Option<Self>; fn checked_mul(self, rhs: Self) -> Option<Self>; fn checked_div(self, rhs: Self) -> Option<Self>; fn checked_div_euclid(self, rhs: Self) -> Option<Self>; fn checked_exact_div(self, rhs: Self) -> Option<Self>; fn checked_rem(self, rhs: Self) -> Option<Self>; fn checked_rem_euclid(self, rhs: Self) -> Option<Self>; fn checked_shl(self, rhs: u32) -> Option<Self>; fn checked_shr(self, rhs: u32) -> Option<Self>; fn checked_neg(self) -> Option<Self>; fn checked_abs(self) -> Option<Self>; fn checked_pow(self, exp: u32) -> Option<Self>; fn checked_ilog(self, base: Self) -> Option<u32>; fn checked_ilog2(self) -> Option<u32>; fn checked_ilog10(self) -> Option<u32>; fn checked_next_multiple_of(self, rhs: Self) -> Option<Self>; fn strict_add(self, rhs: Self) -> Self; fn strict_add_unsigned(self, rhs: Self::Uint) -> Self; fn strict_sub(self, rhs: Self) -> Self; fn strict_sub_unsigned(self, rhs: Self::Uint) -> Self; fn strict_mul(self, rhs: Self) -> Self; fn strict_div(self, rhs: Self) -> Self; fn strict_div_euclid(self, rhs: Self) -> Self; fn strict_rem(self, rhs: Self) -> Self; fn strict_rem_euclid(self, rhs: Self) -> Self; fn strict_shl(self, rhs: u32) -> Self; fn strict_shr(self, rhs: u32) -> Self; fn strict_neg(self) -> Self; fn strict_abs(self) -> Self; fn strict_pow(self, rhs: u32) -> Self; unsafe fn unchecked_add(self, rhs: Self) -> Self; unsafe fn unchecked_exact_div(self, rhs: Self) -> Self; unsafe fn unchecked_sub(self, rhs: Self) -> Self; unsafe fn unchecked_mul(self, rhs: Self) -> Self; unsafe fn unchecked_shl(self, rhs: u32) -> Self; unsafe fn unchecked_shr(self, rhs: u32) -> Self; unsafe fn unchecked_exact_shl(self, rhs: u32) -> Self; unsafe fn unchecked_exact_shr(self, rhs: u32) -> Self; unsafe fn unchecked_neg(self) -> Self; fn overflowing_add(self, rhs: Self) -> (Self, bool); fn overflowing_add_unsigned(self, rhs: Self::Uint) -> (Self, bool); fn overflowing_sub(self, rhs: Self) -> (Self, bool); fn overflowing_sub_unsigned(self, rhs: Self::Uint) -> (Self, bool); fn overflowing_mul(self, rhs: Self) -> (Self, bool); fn overflowing_div(self, rhs: Self) -> (Self, bool); fn overflowing_div_euclid(self, rhs: Self) -> (Self, bool); fn overflowing_rem(self, rhs: Self) -> (Self, bool); fn overflowing_rem_euclid(self, rhs: Self) -> (Self, bool); fn overflowing_shl(self, rhs: u32) -> (Self, bool); fn overflowing_shr(self, rhs: u32) -> (Self, bool); fn overflowing_neg(self) -> (Self, bool); fn overflowing_abs(self) -> (Self, bool); fn overflowing_pow(self, exp: u32) -> (Self, bool); fn carrying_add(self, rhs: Self, carry: bool) -> (Self, bool); fn carrying_mul(self, rhs: Self, carry: Self) -> (Self::Uint, Self); fn carrying_mul_add( self, mul: Self, add: Self, carry: Self, ) -> (Self::Uint, Self); fn borrowing_sub(self, rhs: Self, borrow: bool) -> (Self, bool); fn wrapping_add(self, rhs: Self) -> Self; fn wrapping_add_unsigned(self, rhs: Self::Uint) -> Self; fn wrapping_sub(self, rhs: Self) -> Self; fn wrapping_sub_unsigned(self, rhs: Self::Uint) -> Self; fn wrapping_mul(self, rhs: Self) -> Self; fn wrapping_div(self, rhs: Self) -> Self; fn wrapping_div_euclid(self, rhs: Self) -> Self; fn wrapping_rem(self, rhs: Self) -> Self; fn wrapping_rem_euclid(self, rhs: Self) -> Self; fn wrapping_shl(self, rhs: u32) -> Self; fn wrapping_shr(self, rhs: u32) -> Self; fn wrapping_neg(self) -> Self; fn wrapping_abs(self) -> Self; fn wrapping_pow(self, exp: u32) -> Self; fn saturating_add(self, rhs: Self) -> Self; fn saturating_add_unsigned(self, rhs: Self::Uint) -> Self; fn saturating_sub(self, rhs: Self) -> Self; fn saturating_sub_unsigned(self, rhs: Self::Uint) -> Self; fn saturating_mul(self, rhs: Self) -> Self; fn saturating_div(self, rhs: Self) -> Self; fn saturating_neg(self) -> Self; fn saturating_abs(self) -> Self; fn saturating_pow(self, exp: u32) -> Self; fn unbounded_shl(self, rhs: u32) -> Self; fn unbounded_shr(self, rhs: u32) -> Self; fn cast_unsigned(self) -> Self::Uint; fn to_le(self) -> Self; fn to_be(self) -> Self; fn to_ne_bytes(self) -> Self::Bytes; fn to_le_bytes(self) -> Self::Bytes; fn to_be_bytes(self) -> Self::Bytes;
}
Expand description

A generic, signed integer.

This trait abstracts the interfaces defined by i8, i16, i32, i64, i128, and isize so that these may be used as a single type.

See also IntLeast16, IntLeast32, and IntLeast64.

§Safety

Uint must be the unsigned counterpart to Self so that transmutations between the two are always valid.

Furthermore, all items must behave exactly as their standard counterparts.

Required Associated Constants§

Source

const BITS: u32

See i32::BITS.

Source

const MIN: Self

See i32::MIN.

Source

const MAX: Self

See i32::MAX.

Source

const ZERO: Self

Equivalent to Self::from(0i8).

§Examples
use multitype::Int;

let v0 = i128::ZERO;
let v1 = 0i128;

assert_eq!(v0, v1);
Source

const ONE: Self

Equivalent to Self::from(1i8).

§Examples
use multitype::Int;

let v0 = i128::ONE;
let v1 = 1i128;

assert_eq!(v0, v1);

Required Associated Types§

Source

type Uint: Uint<Int = Self, Bytes = Self::Bytes>

The equivalent, unsigned, integral type.

Source

type Bytes: Array<Scalar = u8> + 'static + Any + CloneToUninit + ConstParamTy_ + Copy + Debug + Eq + Freeze + Hash + Ord + PartialEq + PartialEq<[u8]> + PartialOrd + RefUnwindSafe + Send + Sync + ToOwned + Unpin + UnwindSafe

The array type that represents the bytes of this type.

Required Methods§

Source

fn from_le(value: Self) -> Self

See i32::from_le.

Source

fn from_be(value: Self) -> Self

See i32::from_be.

Source

fn from_ne_bytes(bytes: Self::Bytes) -> Self

Source

fn from_le_bytes(bytes: Self::Bytes) -> Self

Source

fn from_be_bytes(bytes: Self::Bytes) -> Self

Source

fn from_str_radix(s: &str, radix: u32) -> Result<Self, ParseIntError>

Source

fn widening_mul(self, rhs: Self) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source

fn div_floor(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.

See i32::div_floor.

Source

fn div_euclid(self, rhs: Self) -> Self

Source

fn exact_div(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.

See i32::exact_div.

Source

fn rem_euclid(self, rhs: Self) -> Self

Source

fn exact_shl(self, rhs: u32) -> Option<Self>

Available on crate feature nightly_backports only.

See i32::exact_shl.

Source

fn exact_shr(self, rhs: u32) -> Option<Self>

Available on crate feature nightly_backports only.

See i32::exact_shr.

Source

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

Source

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

Source

fn swap_bytes(self) -> Self

Source

fn reverse_bits(self) -> Self

Source

fn abs(self) -> Self

See i32::abs.

Source

fn unsigned_abs(self) -> Self::Uint

Source

fn pow(self, exp: u32) -> Self

See i32::pow.

Source

fn isqrt(self) -> Self

See i32::isqrt.

Source

fn ilog(self, base: Self) -> u32

See i32::ilog.

Source

fn ilog2(self) -> u32

See i32::ilog2.

Source

fn ilog10(self) -> u32

See i32::ilog10.

Source

fn abs_diff(self, rhs: Self) -> Self::Uint

See i32::abs_diff.

Source

fn midpoint(self, rhs: Self) -> Self

See i32::midpoint.

Source

fn next_multiple_of(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source

fn isolate_lowest_one(self) -> Self

Available on crate feature nightly_backports only.
Source

fn isolate_highest_one(self) -> Self

Available on crate feature nightly_backports only.
Source

fn lowest_one(self) -> Option<u32>

Available on crate feature nightly_backports only.
Source

fn highest_one(self) -> Option<u32>

Available on crate feature nightly_backports only.
Source

fn count_zeros(self) -> u32

Source

fn count_ones(self) -> u32

Source

fn leading_zeros(self) -> u32

Source

fn leading_ones(self) -> u32

Source

fn trailing_zeros(self) -> u32

Source

fn trailing_ones(self) -> u32

Source

fn signum(self) -> Self

See i32::signum.

Source

fn is_negative(self) -> bool

Source

fn is_positive(self) -> bool

Source

fn is_multiple_of(self, rhs: Self) -> bool

Available on crate feature nightly_backports only.
Source

fn checked_add(self, rhs: Self) -> Option<Self>

Source

fn checked_add_unsigned(self, rhs: Self::Uint) -> Option<Self>

Source

fn checked_sub(self, rhs: Self) -> Option<Self>

Source

fn checked_sub_unsigned(self, rhs: Self::Uint) -> Option<Self>

Source

fn checked_mul(self, rhs: Self) -> Option<Self>

Source

fn checked_div(self, rhs: Self) -> Option<Self>

Source

fn checked_div_euclid(self, rhs: Self) -> Option<Self>

Source

fn checked_exact_div(self, rhs: Self) -> Option<Self>

Available on crate feature nightly_backports only.
Source

fn checked_rem(self, rhs: Self) -> Option<Self>

Source

fn checked_rem_euclid(self, rhs: Self) -> Option<Self>

Source

fn checked_shl(self, rhs: u32) -> Option<Self>

Source

fn checked_shr(self, rhs: u32) -> Option<Self>

Source

fn checked_neg(self) -> Option<Self>

Source

fn checked_abs(self) -> Option<Self>

Source

fn checked_pow(self, exp: u32) -> Option<Self>

Source

fn checked_ilog(self, base: Self) -> Option<u32>

Source

fn checked_ilog2(self) -> Option<u32>

Source

fn checked_ilog10(self) -> Option<u32>

Source

fn checked_next_multiple_of(self, rhs: Self) -> Option<Self>

Available on crate feature nightly_backports only.
Source

fn strict_add(self, rhs: Self) -> Self

Source

fn strict_add_unsigned(self, rhs: Self::Uint) -> Self

Source

fn strict_sub(self, rhs: Self) -> Self

Source

fn strict_sub_unsigned(self, rhs: Self::Uint) -> Self

Source

fn strict_mul(self, rhs: Self) -> Self

Source

fn strict_div(self, rhs: Self) -> Self

Source

fn strict_div_euclid(self, rhs: Self) -> Self

Source

fn strict_rem(self, rhs: Self) -> Self

Source

fn strict_rem_euclid(self, rhs: Self) -> Self

Source

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

Source

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

Source

fn strict_neg(self) -> Self

Source

fn strict_abs(self) -> Self

Source

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

Source

unsafe fn unchecked_add(self, rhs: Self) -> Self

Source

unsafe fn unchecked_exact_div(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source

unsafe fn unchecked_sub(self, rhs: Self) -> Self

Source

unsafe fn unchecked_mul(self, rhs: Self) -> Self

Source

unsafe fn unchecked_shl(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source

unsafe fn unchecked_shr(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source

unsafe fn unchecked_exact_shl(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source

unsafe fn unchecked_exact_shr(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source

unsafe fn unchecked_neg(self) -> Self

Available on crate feature nightly_backports only.
Source

fn overflowing_add(self, rhs: Self) -> (Self, bool)

Source

fn overflowing_add_unsigned(self, rhs: Self::Uint) -> (Self, bool)

Source

fn overflowing_sub(self, rhs: Self) -> (Self, bool)

Source

fn overflowing_sub_unsigned(self, rhs: Self::Uint) -> (Self, bool)

Source

fn overflowing_mul(self, rhs: Self) -> (Self, bool)

Source

fn overflowing_div(self, rhs: Self) -> (Self, bool)

Source

fn overflowing_div_euclid(self, rhs: Self) -> (Self, bool)

Source

fn overflowing_rem(self, rhs: Self) -> (Self, bool)

Source

fn overflowing_rem_euclid(self, rhs: Self) -> (Self, bool)

Source

fn overflowing_shl(self, rhs: u32) -> (Self, bool)

Source

fn overflowing_shr(self, rhs: u32) -> (Self, bool)

Source

fn overflowing_neg(self) -> (Self, bool)

Source

fn overflowing_abs(self) -> (Self, bool)

Source

fn overflowing_pow(self, exp: u32) -> (Self, bool)

Source

fn carrying_add(self, rhs: Self, carry: bool) -> (Self, bool)

Available on crate feature nightly_backports only.
Source

fn carrying_mul(self, rhs: Self, carry: Self) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source

fn carrying_mul_add( self, mul: Self, add: Self, carry: Self, ) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source

fn borrowing_sub(self, rhs: Self, borrow: bool) -> (Self, bool)

Available on crate feature nightly_backports only.
Source

fn wrapping_add(self, rhs: Self) -> Self

Source

fn wrapping_add_unsigned(self, rhs: Self::Uint) -> Self

Source

fn wrapping_sub(self, rhs: Self) -> Self

Source

fn wrapping_sub_unsigned(self, rhs: Self::Uint) -> Self

Source

fn wrapping_mul(self, rhs: Self) -> Self

Source

fn wrapping_div(self, rhs: Self) -> Self

Source

fn wrapping_div_euclid(self, rhs: Self) -> Self

Source

fn wrapping_rem(self, rhs: Self) -> Self

Source

fn wrapping_rem_euclid(self, rhs: Self) -> Self

Source

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

Source

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

Source

fn wrapping_neg(self) -> Self

Source

fn wrapping_abs(self) -> Self

Source

fn wrapping_pow(self, exp: u32) -> Self

Source

fn saturating_add(self, rhs: Self) -> Self

Source

fn saturating_add_unsigned(self, rhs: Self::Uint) -> Self

Source

fn saturating_sub(self, rhs: Self) -> Self

Source

fn saturating_sub_unsigned(self, rhs: Self::Uint) -> Self

Source

fn saturating_mul(self, rhs: Self) -> Self

Source

fn saturating_div(self, rhs: Self) -> Self

Source

fn saturating_neg(self) -> Self

Source

fn saturating_abs(self) -> Self

Source

fn saturating_pow(self, exp: u32) -> Self

Source

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

Source

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

Source

fn cast_unsigned(self) -> Self::Uint

Reinterprets self as an unsigned integer.

Source

fn to_le(self) -> Self

See i32::to_le.

Source

fn to_be(self) -> Self

See i32::to_be.

Source

fn to_ne_bytes(self) -> Self::Bytes

Source

fn to_le_bytes(self) -> Self::Bytes

Source

fn to_be_bytes(self) -> Self::Bytes

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.

Implementations on Foreign Types§

Source§

impl Int for i8

Source§

const BITS: u32 = 8u32

Source§

const MIN: Self = -128i8

Source§

const MAX: Self = 127i8

Source§

const ZERO: Self = 0i8

Source§

const ONE: Self = 1i8

Source§

type Uint = u8

Source§

type Bytes = [u8; 1]

Source§

fn from_le(value: Self) -> Self

Source§

fn from_be(value: Self) -> Self

Source§

fn from_ne_bytes(bytes: Self::Bytes) -> Self

Source§

fn from_le_bytes(bytes: Self::Bytes) -> Self

Source§

fn from_be_bytes(bytes: Self::Bytes) -> Self

Source§

fn from_str_radix(s: &str, radix: u32) -> Result<Self, ParseIntError>

Source§

fn widening_mul(self, rhs: Self) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source§

fn div_floor(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

fn div_euclid(self, rhs: Self) -> Self

Source§

fn exact_div(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn exact_shl(self, rhs: u32) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

fn exact_shr(self, rhs: u32) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

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

Source§

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

Source§

fn swap_bytes(self) -> Self

Source§

fn reverse_bits(self) -> Self

Source§

fn abs(self) -> Self

Source§

fn unsigned_abs(self) -> Self::Uint

Source§

fn pow(self, exp: u32) -> Self

Source§

fn isqrt(self) -> Self

Source§

fn ilog(self, base: Self) -> u32

Source§

fn ilog2(self) -> u32

Source§

fn ilog10(self) -> u32

Source§

fn abs_diff(self, rhs: Self) -> Self::Uint

Source§

fn midpoint(self, rhs: Self) -> Self

Source§

fn next_multiple_of(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

fn isolate_lowest_one(self) -> Self

Available on crate feature nightly_backports only.
Source§

fn isolate_highest_one(self) -> Self

Available on crate feature nightly_backports only.
Source§

fn lowest_one(self) -> Option<u32>

Available on crate feature nightly_backports only.
Source§

fn highest_one(self) -> Option<u32>

Available on crate feature nightly_backports only.
Source§

fn count_zeros(self) -> u32

Source§

fn count_ones(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

fn trailing_ones(self) -> u32

Source§

fn signum(self) -> Self

Source§

fn is_negative(self) -> bool

Source§

fn is_positive(self) -> bool

Source§

fn is_multiple_of(self, rhs: Self) -> bool

Available on crate feature nightly_backports only.
Source§

fn checked_add(self, rhs: Self) -> Option<Self>

Source§

fn checked_add_unsigned(self, rhs: Self::Uint) -> Option<Self>

Source§

fn checked_sub(self, rhs: Self) -> Option<Self>

Source§

fn checked_sub_unsigned(self, rhs: Self::Uint) -> Option<Self>

Source§

fn checked_mul(self, rhs: Self) -> Option<Self>

Source§

fn checked_div(self, rhs: Self) -> Option<Self>

Source§

fn checked_div_euclid(self, rhs: Self) -> Option<Self>

Source§

fn checked_exact_div(self, rhs: Self) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

fn checked_rem(self, rhs: Self) -> Option<Self>

Source§

fn checked_rem_euclid(self, rhs: Self) -> Option<Self>

Source§

fn checked_shl(self, rhs: u32) -> Option<Self>

Source§

fn checked_shr(self, rhs: u32) -> Option<Self>

Source§

fn checked_neg(self) -> Option<Self>

Source§

fn checked_abs(self) -> Option<Self>

Source§

fn checked_pow(self, exp: u32) -> Option<Self>

Source§

fn checked_ilog(self, base: Self) -> Option<u32>

Source§

fn checked_ilog2(self) -> Option<u32>

Source§

fn checked_ilog10(self) -> Option<u32>

Source§

fn checked_next_multiple_of(self, rhs: Self) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

fn strict_add(self, rhs: Self) -> Self

Source§

fn strict_add_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn strict_sub(self, rhs: Self) -> Self

Source§

fn strict_sub_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn strict_mul(self, rhs: Self) -> Self

Source§

fn strict_div(self, rhs: Self) -> Self

Source§

fn strict_div_euclid(self, rhs: Self) -> Self

Source§

fn strict_rem(self, rhs: Self) -> Self

Source§

fn strict_rem_euclid(self, rhs: Self) -> Self

Source§

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

Source§

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

Source§

fn strict_neg(self) -> Self

Source§

fn strict_abs(self) -> Self

Source§

fn strict_pow(self, exp: u32) -> Self

Source§

unsafe fn unchecked_add(self, rhs: Self) -> Self

Source§

unsafe fn unchecked_exact_div(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_sub(self, rhs: Self) -> Self

Source§

unsafe fn unchecked_mul(self, rhs: Self) -> Self

Source§

unsafe fn unchecked_shl(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_shr(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_exact_shl(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_exact_shr(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_neg(self) -> Self

Available on crate feature nightly_backports only.
Source§

fn overflowing_add(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_add_unsigned(self, rhs: Self::Uint) -> (Self, bool)

Source§

fn overflowing_sub(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_sub_unsigned(self, rhs: Self::Uint) -> (Self, bool)

Source§

fn overflowing_mul(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_div(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_div_euclid(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_rem(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_rem_euclid(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_shl(self, rhs: u32) -> (Self, bool)

Source§

fn overflowing_shr(self, rhs: u32) -> (Self, bool)

Source§

fn overflowing_neg(self) -> (Self, bool)

Source§

fn overflowing_abs(self) -> (Self, bool)

Source§

fn overflowing_pow(self, exp: u32) -> (Self, bool)

Source§

fn carrying_add(self, rhs: Self, carry: bool) -> (Self, bool)

Available on crate feature nightly_backports only.
Source§

fn carrying_mul(self, rhs: Self, carry: Self) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source§

fn carrying_mul_add( self, mul: Self, add: Self, carry: Self, ) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source§

fn borrowing_sub(self, rhs: Self, borrow: bool) -> (Self, bool)

Available on crate feature nightly_backports only.
Source§

fn wrapping_add(self, rhs: Self) -> Self

Source§

fn wrapping_add_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn wrapping_sub(self, rhs: Self) -> Self

Source§

fn wrapping_sub_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn wrapping_mul(self, rhs: Self) -> Self

Source§

fn wrapping_div(self, rhs: Self) -> Self

Source§

fn wrapping_div_euclid(self, rhs: Self) -> Self

Source§

fn wrapping_rem(self, rhs: Self) -> Self

Source§

fn wrapping_rem_euclid(self, rhs: Self) -> Self

Source§

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

Source§

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

Source§

fn wrapping_neg(self) -> Self

Source§

fn wrapping_abs(self) -> Self

Source§

fn wrapping_pow(self, exp: u32) -> Self

Source§

fn saturating_add(self, rhs: Self) -> Self

Source§

fn saturating_add_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn saturating_sub(self, rhs: Self) -> Self

Source§

fn saturating_sub_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn saturating_mul(self, rhs: Self) -> Self

Source§

fn saturating_div(self, rhs: Self) -> Self

Source§

fn saturating_neg(self) -> Self

Source§

fn saturating_abs(self) -> Self

Source§

fn saturating_pow(self, exp: u32) -> Self

Source§

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

Source§

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

Source§

fn cast_unsigned(self) -> Self::Uint

Source§

fn to_le(self) -> Self

Source§

fn to_be(self) -> Self

Source§

fn to_ne_bytes(self) -> Self::Bytes

Source§

fn to_le_bytes(self) -> Self::Bytes

Source§

fn to_be_bytes(self) -> Self::Bytes

Source§

impl Int for i16

Source§

const BITS: u32 = 16u32

Source§

const MIN: Self = -32_768i16

Source§

const MAX: Self = 32_767i16

Source§

const ZERO: Self = 0i16

Source§

const ONE: Self = 1i16

Source§

type Uint = u16

Source§

type Bytes = [u8; 2]

Source§

fn from_le(value: Self) -> Self

Source§

fn from_be(value: Self) -> Self

Source§

fn from_ne_bytes(bytes: Self::Bytes) -> Self

Source§

fn from_le_bytes(bytes: Self::Bytes) -> Self

Source§

fn from_be_bytes(bytes: Self::Bytes) -> Self

Source§

fn from_str_radix(s: &str, radix: u32) -> Result<Self, ParseIntError>

Source§

fn widening_mul(self, rhs: Self) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source§

fn div_floor(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

fn div_euclid(self, rhs: Self) -> Self

Source§

fn exact_div(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn exact_shl(self, rhs: u32) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

fn exact_shr(self, rhs: u32) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

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

Source§

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

Source§

fn swap_bytes(self) -> Self

Source§

fn reverse_bits(self) -> Self

Source§

fn abs(self) -> Self

Source§

fn unsigned_abs(self) -> Self::Uint

Source§

fn pow(self, exp: u32) -> Self

Source§

fn isqrt(self) -> Self

Source§

fn ilog(self, base: Self) -> u32

Source§

fn ilog2(self) -> u32

Source§

fn ilog10(self) -> u32

Source§

fn abs_diff(self, rhs: Self) -> Self::Uint

Source§

fn midpoint(self, rhs: Self) -> Self

Source§

fn next_multiple_of(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

fn isolate_lowest_one(self) -> Self

Available on crate feature nightly_backports only.
Source§

fn isolate_highest_one(self) -> Self

Available on crate feature nightly_backports only.
Source§

fn lowest_one(self) -> Option<u32>

Available on crate feature nightly_backports only.
Source§

fn highest_one(self) -> Option<u32>

Available on crate feature nightly_backports only.
Source§

fn count_zeros(self) -> u32

Source§

fn count_ones(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

fn trailing_ones(self) -> u32

Source§

fn signum(self) -> Self

Source§

fn is_negative(self) -> bool

Source§

fn is_positive(self) -> bool

Source§

fn is_multiple_of(self, rhs: Self) -> bool

Available on crate feature nightly_backports only.
Source§

fn checked_add(self, rhs: Self) -> Option<Self>

Source§

fn checked_add_unsigned(self, rhs: Self::Uint) -> Option<Self>

Source§

fn checked_sub(self, rhs: Self) -> Option<Self>

Source§

fn checked_sub_unsigned(self, rhs: Self::Uint) -> Option<Self>

Source§

fn checked_mul(self, rhs: Self) -> Option<Self>

Source§

fn checked_div(self, rhs: Self) -> Option<Self>

Source§

fn checked_div_euclid(self, rhs: Self) -> Option<Self>

Source§

fn checked_exact_div(self, rhs: Self) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

fn checked_rem(self, rhs: Self) -> Option<Self>

Source§

fn checked_rem_euclid(self, rhs: Self) -> Option<Self>

Source§

fn checked_shl(self, rhs: u32) -> Option<Self>

Source§

fn checked_shr(self, rhs: u32) -> Option<Self>

Source§

fn checked_neg(self) -> Option<Self>

Source§

fn checked_abs(self) -> Option<Self>

Source§

fn checked_pow(self, exp: u32) -> Option<Self>

Source§

fn checked_ilog(self, base: Self) -> Option<u32>

Source§

fn checked_ilog2(self) -> Option<u32>

Source§

fn checked_ilog10(self) -> Option<u32>

Source§

fn checked_next_multiple_of(self, rhs: Self) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

fn strict_add(self, rhs: Self) -> Self

Source§

fn strict_add_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn strict_sub(self, rhs: Self) -> Self

Source§

fn strict_sub_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn strict_mul(self, rhs: Self) -> Self

Source§

fn strict_div(self, rhs: Self) -> Self

Source§

fn strict_div_euclid(self, rhs: Self) -> Self

Source§

fn strict_rem(self, rhs: Self) -> Self

Source§

fn strict_rem_euclid(self, rhs: Self) -> Self

Source§

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

Source§

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

Source§

fn strict_neg(self) -> Self

Source§

fn strict_abs(self) -> Self

Source§

fn strict_pow(self, exp: u32) -> Self

Source§

unsafe fn unchecked_add(self, rhs: Self) -> Self

Source§

unsafe fn unchecked_exact_div(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_sub(self, rhs: Self) -> Self

Source§

unsafe fn unchecked_mul(self, rhs: Self) -> Self

Source§

unsafe fn unchecked_shl(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_shr(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_exact_shl(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_exact_shr(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_neg(self) -> Self

Available on crate feature nightly_backports only.
Source§

fn overflowing_add(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_add_unsigned(self, rhs: Self::Uint) -> (Self, bool)

Source§

fn overflowing_sub(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_sub_unsigned(self, rhs: Self::Uint) -> (Self, bool)

Source§

fn overflowing_mul(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_div(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_div_euclid(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_rem(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_rem_euclid(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_shl(self, rhs: u32) -> (Self, bool)

Source§

fn overflowing_shr(self, rhs: u32) -> (Self, bool)

Source§

fn overflowing_neg(self) -> (Self, bool)

Source§

fn overflowing_abs(self) -> (Self, bool)

Source§

fn overflowing_pow(self, exp: u32) -> (Self, bool)

Source§

fn carrying_add(self, rhs: Self, carry: bool) -> (Self, bool)

Available on crate feature nightly_backports only.
Source§

fn carrying_mul(self, rhs: Self, carry: Self) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source§

fn carrying_mul_add( self, mul: Self, add: Self, carry: Self, ) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source§

fn borrowing_sub(self, rhs: Self, borrow: bool) -> (Self, bool)

Available on crate feature nightly_backports only.
Source§

fn wrapping_add(self, rhs: Self) -> Self

Source§

fn wrapping_add_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn wrapping_sub(self, rhs: Self) -> Self

Source§

fn wrapping_sub_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn wrapping_mul(self, rhs: Self) -> Self

Source§

fn wrapping_div(self, rhs: Self) -> Self

Source§

fn wrapping_div_euclid(self, rhs: Self) -> Self

Source§

fn wrapping_rem(self, rhs: Self) -> Self

Source§

fn wrapping_rem_euclid(self, rhs: Self) -> Self

Source§

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

Source§

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

Source§

fn wrapping_neg(self) -> Self

Source§

fn wrapping_abs(self) -> Self

Source§

fn wrapping_pow(self, exp: u32) -> Self

Source§

fn saturating_add(self, rhs: Self) -> Self

Source§

fn saturating_add_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn saturating_sub(self, rhs: Self) -> Self

Source§

fn saturating_sub_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn saturating_mul(self, rhs: Self) -> Self

Source§

fn saturating_div(self, rhs: Self) -> Self

Source§

fn saturating_neg(self) -> Self

Source§

fn saturating_abs(self) -> Self

Source§

fn saturating_pow(self, exp: u32) -> Self

Source§

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

Source§

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

Source§

fn cast_unsigned(self) -> Self::Uint

Source§

fn to_le(self) -> Self

Source§

fn to_be(self) -> Self

Source§

fn to_ne_bytes(self) -> Self::Bytes

Source§

fn to_le_bytes(self) -> Self::Bytes

Source§

fn to_be_bytes(self) -> Self::Bytes

Source§

impl Int for i32

Source§

const BITS: u32 = 32u32

Source§

const MIN: Self = -2_147_483_648i32

Source§

const MAX: Self = 2_147_483_647i32

Source§

const ZERO: Self = 0i32

Source§

const ONE: Self = 1i32

Source§

type Uint = u32

Source§

type Bytes = [u8; 4]

Source§

fn from_le(value: Self) -> Self

Source§

fn from_be(value: Self) -> Self

Source§

fn from_ne_bytes(bytes: Self::Bytes) -> Self

Source§

fn from_le_bytes(bytes: Self::Bytes) -> Self

Source§

fn from_be_bytes(bytes: Self::Bytes) -> Self

Source§

fn from_str_radix(s: &str, radix: u32) -> Result<Self, ParseIntError>

Source§

fn widening_mul(self, rhs: Self) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source§

fn div_floor(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

fn div_euclid(self, rhs: Self) -> Self

Source§

fn exact_div(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn exact_shl(self, rhs: u32) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

fn exact_shr(self, rhs: u32) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

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

Source§

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

Source§

fn swap_bytes(self) -> Self

Source§

fn reverse_bits(self) -> Self

Source§

fn abs(self) -> Self

Source§

fn unsigned_abs(self) -> Self::Uint

Source§

fn pow(self, exp: u32) -> Self

Source§

fn isqrt(self) -> Self

Source§

fn ilog(self, base: Self) -> u32

Source§

fn ilog2(self) -> u32

Source§

fn ilog10(self) -> u32

Source§

fn abs_diff(self, rhs: Self) -> Self::Uint

Source§

fn midpoint(self, rhs: Self) -> Self

Source§

fn next_multiple_of(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

fn isolate_lowest_one(self) -> Self

Available on crate feature nightly_backports only.
Source§

fn isolate_highest_one(self) -> Self

Available on crate feature nightly_backports only.
Source§

fn lowest_one(self) -> Option<u32>

Available on crate feature nightly_backports only.
Source§

fn highest_one(self) -> Option<u32>

Available on crate feature nightly_backports only.
Source§

fn count_zeros(self) -> u32

Source§

fn count_ones(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

fn trailing_ones(self) -> u32

Source§

fn signum(self) -> Self

Source§

fn is_negative(self) -> bool

Source§

fn is_positive(self) -> bool

Source§

fn is_multiple_of(self, rhs: Self) -> bool

Available on crate feature nightly_backports only.
Source§

fn checked_add(self, rhs: Self) -> Option<Self>

Source§

fn checked_add_unsigned(self, rhs: Self::Uint) -> Option<Self>

Source§

fn checked_sub(self, rhs: Self) -> Option<Self>

Source§

fn checked_sub_unsigned(self, rhs: Self::Uint) -> Option<Self>

Source§

fn checked_mul(self, rhs: Self) -> Option<Self>

Source§

fn checked_div(self, rhs: Self) -> Option<Self>

Source§

fn checked_div_euclid(self, rhs: Self) -> Option<Self>

Source§

fn checked_exact_div(self, rhs: Self) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

fn checked_rem(self, rhs: Self) -> Option<Self>

Source§

fn checked_rem_euclid(self, rhs: Self) -> Option<Self>

Source§

fn checked_shl(self, rhs: u32) -> Option<Self>

Source§

fn checked_shr(self, rhs: u32) -> Option<Self>

Source§

fn checked_neg(self) -> Option<Self>

Source§

fn checked_abs(self) -> Option<Self>

Source§

fn checked_pow(self, exp: u32) -> Option<Self>

Source§

fn checked_ilog(self, base: Self) -> Option<u32>

Source§

fn checked_ilog2(self) -> Option<u32>

Source§

fn checked_ilog10(self) -> Option<u32>

Source§

fn checked_next_multiple_of(self, rhs: Self) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

fn strict_add(self, rhs: Self) -> Self

Source§

fn strict_add_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn strict_sub(self, rhs: Self) -> Self

Source§

fn strict_sub_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn strict_mul(self, rhs: Self) -> Self

Source§

fn strict_div(self, rhs: Self) -> Self

Source§

fn strict_div_euclid(self, rhs: Self) -> Self

Source§

fn strict_rem(self, rhs: Self) -> Self

Source§

fn strict_rem_euclid(self, rhs: Self) -> Self

Source§

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

Source§

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

Source§

fn strict_neg(self) -> Self

Source§

fn strict_abs(self) -> Self

Source§

fn strict_pow(self, exp: u32) -> Self

Source§

unsafe fn unchecked_add(self, rhs: Self) -> Self

Source§

unsafe fn unchecked_exact_div(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_sub(self, rhs: Self) -> Self

Source§

unsafe fn unchecked_mul(self, rhs: Self) -> Self

Source§

unsafe fn unchecked_shl(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_shr(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_exact_shl(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_exact_shr(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_neg(self) -> Self

Available on crate feature nightly_backports only.
Source§

fn overflowing_add(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_add_unsigned(self, rhs: Self::Uint) -> (Self, bool)

Source§

fn overflowing_sub(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_sub_unsigned(self, rhs: Self::Uint) -> (Self, bool)

Source§

fn overflowing_mul(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_div(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_div_euclid(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_rem(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_rem_euclid(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_shl(self, rhs: u32) -> (Self, bool)

Source§

fn overflowing_shr(self, rhs: u32) -> (Self, bool)

Source§

fn overflowing_neg(self) -> (Self, bool)

Source§

fn overflowing_abs(self) -> (Self, bool)

Source§

fn overflowing_pow(self, exp: u32) -> (Self, bool)

Source§

fn carrying_add(self, rhs: Self, carry: bool) -> (Self, bool)

Available on crate feature nightly_backports only.
Source§

fn carrying_mul(self, rhs: Self, carry: Self) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source§

fn carrying_mul_add( self, mul: Self, add: Self, carry: Self, ) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source§

fn borrowing_sub(self, rhs: Self, borrow: bool) -> (Self, bool)

Available on crate feature nightly_backports only.
Source§

fn wrapping_add(self, rhs: Self) -> Self

Source§

fn wrapping_add_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn wrapping_sub(self, rhs: Self) -> Self

Source§

fn wrapping_sub_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn wrapping_mul(self, rhs: Self) -> Self

Source§

fn wrapping_div(self, rhs: Self) -> Self

Source§

fn wrapping_div_euclid(self, rhs: Self) -> Self

Source§

fn wrapping_rem(self, rhs: Self) -> Self

Source§

fn wrapping_rem_euclid(self, rhs: Self) -> Self

Source§

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

Source§

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

Source§

fn wrapping_neg(self) -> Self

Source§

fn wrapping_abs(self) -> Self

Source§

fn wrapping_pow(self, exp: u32) -> Self

Source§

fn saturating_add(self, rhs: Self) -> Self

Source§

fn saturating_add_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn saturating_sub(self, rhs: Self) -> Self

Source§

fn saturating_sub_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn saturating_mul(self, rhs: Self) -> Self

Source§

fn saturating_div(self, rhs: Self) -> Self

Source§

fn saturating_neg(self) -> Self

Source§

fn saturating_abs(self) -> Self

Source§

fn saturating_pow(self, exp: u32) -> Self

Source§

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

Source§

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

Source§

fn cast_unsigned(self) -> Self::Uint

Source§

fn to_le(self) -> Self

Source§

fn to_be(self) -> Self

Source§

fn to_ne_bytes(self) -> Self::Bytes

Source§

fn to_le_bytes(self) -> Self::Bytes

Source§

fn to_be_bytes(self) -> Self::Bytes

Source§

impl Int for i64

Source§

const BITS: u32 = 64u32

Source§

const MIN: Self = -9_223_372_036_854_775_808i64

Source§

const MAX: Self = 9_223_372_036_854_775_807i64

Source§

const ZERO: Self = 0i64

Source§

const ONE: Self = 1i64

Source§

type Uint = u64

Source§

type Bytes = [u8; 8]

Source§

fn from_le(value: Self) -> Self

Source§

fn from_be(value: Self) -> Self

Source§

fn from_ne_bytes(bytes: Self::Bytes) -> Self

Source§

fn from_le_bytes(bytes: Self::Bytes) -> Self

Source§

fn from_be_bytes(bytes: Self::Bytes) -> Self

Source§

fn from_str_radix(s: &str, radix: u32) -> Result<Self, ParseIntError>

Source§

fn widening_mul(self, rhs: Self) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source§

fn div_floor(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

fn div_euclid(self, rhs: Self) -> Self

Source§

fn exact_div(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn exact_shl(self, rhs: u32) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

fn exact_shr(self, rhs: u32) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

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

Source§

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

Source§

fn swap_bytes(self) -> Self

Source§

fn reverse_bits(self) -> Self

Source§

fn abs(self) -> Self

Source§

fn unsigned_abs(self) -> Self::Uint

Source§

fn pow(self, exp: u32) -> Self

Source§

fn isqrt(self) -> Self

Source§

fn ilog(self, base: Self) -> u32

Source§

fn ilog2(self) -> u32

Source§

fn ilog10(self) -> u32

Source§

fn abs_diff(self, rhs: Self) -> Self::Uint

Source§

fn midpoint(self, rhs: Self) -> Self

Source§

fn next_multiple_of(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

fn isolate_lowest_one(self) -> Self

Available on crate feature nightly_backports only.
Source§

fn isolate_highest_one(self) -> Self

Available on crate feature nightly_backports only.
Source§

fn lowest_one(self) -> Option<u32>

Available on crate feature nightly_backports only.
Source§

fn highest_one(self) -> Option<u32>

Available on crate feature nightly_backports only.
Source§

fn count_zeros(self) -> u32

Source§

fn count_ones(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

fn trailing_ones(self) -> u32

Source§

fn signum(self) -> Self

Source§

fn is_negative(self) -> bool

Source§

fn is_positive(self) -> bool

Source§

fn is_multiple_of(self, rhs: Self) -> bool

Available on crate feature nightly_backports only.
Source§

fn checked_add(self, rhs: Self) -> Option<Self>

Source§

fn checked_add_unsigned(self, rhs: Self::Uint) -> Option<Self>

Source§

fn checked_sub(self, rhs: Self) -> Option<Self>

Source§

fn checked_sub_unsigned(self, rhs: Self::Uint) -> Option<Self>

Source§

fn checked_mul(self, rhs: Self) -> Option<Self>

Source§

fn checked_div(self, rhs: Self) -> Option<Self>

Source§

fn checked_div_euclid(self, rhs: Self) -> Option<Self>

Source§

fn checked_exact_div(self, rhs: Self) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

fn checked_rem(self, rhs: Self) -> Option<Self>

Source§

fn checked_rem_euclid(self, rhs: Self) -> Option<Self>

Source§

fn checked_shl(self, rhs: u32) -> Option<Self>

Source§

fn checked_shr(self, rhs: u32) -> Option<Self>

Source§

fn checked_neg(self) -> Option<Self>

Source§

fn checked_abs(self) -> Option<Self>

Source§

fn checked_pow(self, exp: u32) -> Option<Self>

Source§

fn checked_ilog(self, base: Self) -> Option<u32>

Source§

fn checked_ilog2(self) -> Option<u32>

Source§

fn checked_ilog10(self) -> Option<u32>

Source§

fn checked_next_multiple_of(self, rhs: Self) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

fn strict_add(self, rhs: Self) -> Self

Source§

fn strict_add_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn strict_sub(self, rhs: Self) -> Self

Source§

fn strict_sub_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn strict_mul(self, rhs: Self) -> Self

Source§

fn strict_div(self, rhs: Self) -> Self

Source§

fn strict_div_euclid(self, rhs: Self) -> Self

Source§

fn strict_rem(self, rhs: Self) -> Self

Source§

fn strict_rem_euclid(self, rhs: Self) -> Self

Source§

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

Source§

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

Source§

fn strict_neg(self) -> Self

Source§

fn strict_abs(self) -> Self

Source§

fn strict_pow(self, exp: u32) -> Self

Source§

unsafe fn unchecked_add(self, rhs: Self) -> Self

Source§

unsafe fn unchecked_exact_div(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_sub(self, rhs: Self) -> Self

Source§

unsafe fn unchecked_mul(self, rhs: Self) -> Self

Source§

unsafe fn unchecked_shl(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_shr(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_exact_shl(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_exact_shr(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_neg(self) -> Self

Available on crate feature nightly_backports only.
Source§

fn overflowing_add(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_add_unsigned(self, rhs: Self::Uint) -> (Self, bool)

Source§

fn overflowing_sub(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_sub_unsigned(self, rhs: Self::Uint) -> (Self, bool)

Source§

fn overflowing_mul(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_div(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_div_euclid(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_rem(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_rem_euclid(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_shl(self, rhs: u32) -> (Self, bool)

Source§

fn overflowing_shr(self, rhs: u32) -> (Self, bool)

Source§

fn overflowing_neg(self) -> (Self, bool)

Source§

fn overflowing_abs(self) -> (Self, bool)

Source§

fn overflowing_pow(self, exp: u32) -> (Self, bool)

Source§

fn carrying_add(self, rhs: Self, carry: bool) -> (Self, bool)

Available on crate feature nightly_backports only.
Source§

fn carrying_mul(self, rhs: Self, carry: Self) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source§

fn carrying_mul_add( self, mul: Self, add: Self, carry: Self, ) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source§

fn borrowing_sub(self, rhs: Self, borrow: bool) -> (Self, bool)

Available on crate feature nightly_backports only.
Source§

fn wrapping_add(self, rhs: Self) -> Self

Source§

fn wrapping_add_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn wrapping_sub(self, rhs: Self) -> Self

Source§

fn wrapping_sub_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn wrapping_mul(self, rhs: Self) -> Self

Source§

fn wrapping_div(self, rhs: Self) -> Self

Source§

fn wrapping_div_euclid(self, rhs: Self) -> Self

Source§

fn wrapping_rem(self, rhs: Self) -> Self

Source§

fn wrapping_rem_euclid(self, rhs: Self) -> Self

Source§

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

Source§

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

Source§

fn wrapping_neg(self) -> Self

Source§

fn wrapping_abs(self) -> Self

Source§

fn wrapping_pow(self, exp: u32) -> Self

Source§

fn saturating_add(self, rhs: Self) -> Self

Source§

fn saturating_add_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn saturating_sub(self, rhs: Self) -> Self

Source§

fn saturating_sub_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn saturating_mul(self, rhs: Self) -> Self

Source§

fn saturating_div(self, rhs: Self) -> Self

Source§

fn saturating_neg(self) -> Self

Source§

fn saturating_abs(self) -> Self

Source§

fn saturating_pow(self, exp: u32) -> Self

Source§

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

Source§

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

Source§

fn cast_unsigned(self) -> Self::Uint

Source§

fn to_le(self) -> Self

Source§

fn to_be(self) -> Self

Source§

fn to_ne_bytes(self) -> Self::Bytes

Source§

fn to_le_bytes(self) -> Self::Bytes

Source§

fn to_be_bytes(self) -> Self::Bytes

Source§

impl Int for i128

Source§

const BITS: u32 = 128u32

Source§

const MIN: Self = -170_141_183_460_469_231_731_687_303_715_884_105_728i128

Source§

const MAX: Self = 170_141_183_460_469_231_731_687_303_715_884_105_727i128

Source§

const ZERO: Self = 0i128

Source§

const ONE: Self = 1i128

Source§

type Uint = u128

Source§

type Bytes = [u8; 16]

Source§

fn from_le(value: Self) -> Self

Source§

fn from_be(value: Self) -> Self

Source§

fn from_ne_bytes(bytes: Self::Bytes) -> Self

Source§

fn from_le_bytes(bytes: Self::Bytes) -> Self

Source§

fn from_be_bytes(bytes: Self::Bytes) -> Self

Source§

fn from_str_radix(s: &str, radix: u32) -> Result<Self, ParseIntError>

Source§

fn widening_mul(self, rhs: Self) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source§

fn div_floor(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

fn div_euclid(self, rhs: Self) -> Self

Source§

fn exact_div(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn exact_shl(self, rhs: u32) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

fn exact_shr(self, rhs: u32) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

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

Source§

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

Source§

fn swap_bytes(self) -> Self

Source§

fn reverse_bits(self) -> Self

Source§

fn abs(self) -> Self

Source§

fn unsigned_abs(self) -> Self::Uint

Source§

fn pow(self, exp: u32) -> Self

Source§

fn isqrt(self) -> Self

Source§

fn ilog(self, base: Self) -> u32

Source§

fn ilog2(self) -> u32

Source§

fn ilog10(self) -> u32

Source§

fn abs_diff(self, rhs: Self) -> Self::Uint

Source§

fn midpoint(self, rhs: Self) -> Self

Source§

fn next_multiple_of(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

fn isolate_lowest_one(self) -> Self

Available on crate feature nightly_backports only.
Source§

fn isolate_highest_one(self) -> Self

Available on crate feature nightly_backports only.
Source§

fn lowest_one(self) -> Option<u32>

Available on crate feature nightly_backports only.
Source§

fn highest_one(self) -> Option<u32>

Available on crate feature nightly_backports only.
Source§

fn count_zeros(self) -> u32

Source§

fn count_ones(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

fn trailing_ones(self) -> u32

Source§

fn signum(self) -> Self

Source§

fn is_negative(self) -> bool

Source§

fn is_positive(self) -> bool

Source§

fn is_multiple_of(self, rhs: Self) -> bool

Available on crate feature nightly_backports only.
Source§

fn checked_add(self, rhs: Self) -> Option<Self>

Source§

fn checked_add_unsigned(self, rhs: Self::Uint) -> Option<Self>

Source§

fn checked_sub(self, rhs: Self) -> Option<Self>

Source§

fn checked_sub_unsigned(self, rhs: Self::Uint) -> Option<Self>

Source§

fn checked_mul(self, rhs: Self) -> Option<Self>

Source§

fn checked_div(self, rhs: Self) -> Option<Self>

Source§

fn checked_div_euclid(self, rhs: Self) -> Option<Self>

Source§

fn checked_exact_div(self, rhs: Self) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

fn checked_rem(self, rhs: Self) -> Option<Self>

Source§

fn checked_rem_euclid(self, rhs: Self) -> Option<Self>

Source§

fn checked_shl(self, rhs: u32) -> Option<Self>

Source§

fn checked_shr(self, rhs: u32) -> Option<Self>

Source§

fn checked_neg(self) -> Option<Self>

Source§

fn checked_abs(self) -> Option<Self>

Source§

fn checked_pow(self, exp: u32) -> Option<Self>

Source§

fn checked_ilog(self, base: Self) -> Option<u32>

Source§

fn checked_ilog2(self) -> Option<u32>

Source§

fn checked_ilog10(self) -> Option<u32>

Source§

fn checked_next_multiple_of(self, rhs: Self) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

fn strict_add(self, rhs: Self) -> Self

Source§

fn strict_add_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn strict_sub(self, rhs: Self) -> Self

Source§

fn strict_sub_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn strict_mul(self, rhs: Self) -> Self

Source§

fn strict_div(self, rhs: Self) -> Self

Source§

fn strict_div_euclid(self, rhs: Self) -> Self

Source§

fn strict_rem(self, rhs: Self) -> Self

Source§

fn strict_rem_euclid(self, rhs: Self) -> Self

Source§

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

Source§

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

Source§

fn strict_neg(self) -> Self

Source§

fn strict_abs(self) -> Self

Source§

fn strict_pow(self, exp: u32) -> Self

Source§

unsafe fn unchecked_add(self, rhs: Self) -> Self

Source§

unsafe fn unchecked_exact_div(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_sub(self, rhs: Self) -> Self

Source§

unsafe fn unchecked_mul(self, rhs: Self) -> Self

Source§

unsafe fn unchecked_shl(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_shr(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_exact_shl(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_exact_shr(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_neg(self) -> Self

Available on crate feature nightly_backports only.
Source§

fn overflowing_add(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_add_unsigned(self, rhs: Self::Uint) -> (Self, bool)

Source§

fn overflowing_sub(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_sub_unsigned(self, rhs: Self::Uint) -> (Self, bool)

Source§

fn overflowing_mul(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_div(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_div_euclid(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_rem(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_rem_euclid(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_shl(self, rhs: u32) -> (Self, bool)

Source§

fn overflowing_shr(self, rhs: u32) -> (Self, bool)

Source§

fn overflowing_neg(self) -> (Self, bool)

Source§

fn overflowing_abs(self) -> (Self, bool)

Source§

fn overflowing_pow(self, exp: u32) -> (Self, bool)

Source§

fn carrying_add(self, rhs: Self, carry: bool) -> (Self, bool)

Available on crate feature nightly_backports only.
Source§

fn carrying_mul(self, rhs: Self, carry: Self) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source§

fn carrying_mul_add( self, mul: Self, add: Self, carry: Self, ) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source§

fn borrowing_sub(self, rhs: Self, borrow: bool) -> (Self, bool)

Available on crate feature nightly_backports only.
Source§

fn wrapping_add(self, rhs: Self) -> Self

Source§

fn wrapping_add_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn wrapping_sub(self, rhs: Self) -> Self

Source§

fn wrapping_sub_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn wrapping_mul(self, rhs: Self) -> Self

Source§

fn wrapping_div(self, rhs: Self) -> Self

Source§

fn wrapping_div_euclid(self, rhs: Self) -> Self

Source§

fn wrapping_rem(self, rhs: Self) -> Self

Source§

fn wrapping_rem_euclid(self, rhs: Self) -> Self

Source§

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

Source§

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

Source§

fn wrapping_neg(self) -> Self

Source§

fn wrapping_abs(self) -> Self

Source§

fn wrapping_pow(self, exp: u32) -> Self

Source§

fn saturating_add(self, rhs: Self) -> Self

Source§

fn saturating_add_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn saturating_sub(self, rhs: Self) -> Self

Source§

fn saturating_sub_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn saturating_mul(self, rhs: Self) -> Self

Source§

fn saturating_div(self, rhs: Self) -> Self

Source§

fn saturating_neg(self) -> Self

Source§

fn saturating_abs(self) -> Self

Source§

fn saturating_pow(self, exp: u32) -> Self

Source§

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

Source§

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

Source§

fn cast_unsigned(self) -> Self::Uint

Source§

fn to_le(self) -> Self

Source§

fn to_be(self) -> Self

Source§

fn to_ne_bytes(self) -> Self::Bytes

Source§

fn to_le_bytes(self) -> Self::Bytes

Source§

fn to_be_bytes(self) -> Self::Bytes

Source§

impl Int for isize

Source§

const BITS: u32 = 32u32

Source§

const MIN: Self = -2_147_483_648isize

Source§

const MAX: Self = 2_147_483_647isize

Source§

const ZERO: Self = 0isize

Source§

const ONE: Self = 1isize

Source§

type Uint = usize

Source§

type Bytes = [u8; 4]

Source§

fn from_le(value: Self) -> Self

Source§

fn from_be(value: Self) -> Self

Source§

fn from_ne_bytes(bytes: Self::Bytes) -> Self

Source§

fn from_le_bytes(bytes: Self::Bytes) -> Self

Source§

fn from_be_bytes(bytes: Self::Bytes) -> Self

Source§

fn from_str_radix(s: &str, radix: u32) -> Result<Self, ParseIntError>

Source§

fn widening_mul(self, rhs: Self) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source§

fn div_floor(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

fn div_euclid(self, rhs: Self) -> Self

Source§

fn exact_div(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn exact_shl(self, rhs: u32) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

fn exact_shr(self, rhs: u32) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

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

Source§

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

Source§

fn swap_bytes(self) -> Self

Source§

fn reverse_bits(self) -> Self

Source§

fn abs(self) -> Self

Source§

fn unsigned_abs(self) -> Self::Uint

Source§

fn pow(self, exp: u32) -> Self

Source§

fn isqrt(self) -> Self

Source§

fn ilog(self, base: Self) -> u32

Source§

fn ilog2(self) -> u32

Source§

fn ilog10(self) -> u32

Source§

fn abs_diff(self, rhs: Self) -> Self::Uint

Source§

fn midpoint(self, rhs: Self) -> Self

Source§

fn next_multiple_of(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

fn isolate_lowest_one(self) -> Self

Available on crate feature nightly_backports only.
Source§

fn isolate_highest_one(self) -> Self

Available on crate feature nightly_backports only.
Source§

fn lowest_one(self) -> Option<u32>

Available on crate feature nightly_backports only.
Source§

fn highest_one(self) -> Option<u32>

Available on crate feature nightly_backports only.
Source§

fn count_zeros(self) -> u32

Source§

fn count_ones(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

fn trailing_ones(self) -> u32

Source§

fn signum(self) -> Self

Source§

fn is_negative(self) -> bool

Source§

fn is_positive(self) -> bool

Source§

fn is_multiple_of(self, rhs: Self) -> bool

Available on crate feature nightly_backports only.
Source§

fn checked_add(self, rhs: Self) -> Option<Self>

Source§

fn checked_add_unsigned(self, rhs: Self::Uint) -> Option<Self>

Source§

fn checked_sub(self, rhs: Self) -> Option<Self>

Source§

fn checked_sub_unsigned(self, rhs: Self::Uint) -> Option<Self>

Source§

fn checked_mul(self, rhs: Self) -> Option<Self>

Source§

fn checked_div(self, rhs: Self) -> Option<Self>

Source§

fn checked_div_euclid(self, rhs: Self) -> Option<Self>

Source§

fn checked_exact_div(self, rhs: Self) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

fn checked_rem(self, rhs: Self) -> Option<Self>

Source§

fn checked_rem_euclid(self, rhs: Self) -> Option<Self>

Source§

fn checked_shl(self, rhs: u32) -> Option<Self>

Source§

fn checked_shr(self, rhs: u32) -> Option<Self>

Source§

fn checked_neg(self) -> Option<Self>

Source§

fn checked_abs(self) -> Option<Self>

Source§

fn checked_pow(self, exp: u32) -> Option<Self>

Source§

fn checked_ilog(self, base: Self) -> Option<u32>

Source§

fn checked_ilog2(self) -> Option<u32>

Source§

fn checked_ilog10(self) -> Option<u32>

Source§

fn checked_next_multiple_of(self, rhs: Self) -> Option<Self>

Available on crate feature nightly_backports only.
Source§

fn strict_add(self, rhs: Self) -> Self

Source§

fn strict_add_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn strict_sub(self, rhs: Self) -> Self

Source§

fn strict_sub_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn strict_mul(self, rhs: Self) -> Self

Source§

fn strict_div(self, rhs: Self) -> Self

Source§

fn strict_div_euclid(self, rhs: Self) -> Self

Source§

fn strict_rem(self, rhs: Self) -> Self

Source§

fn strict_rem_euclid(self, rhs: Self) -> Self

Source§

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

Source§

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

Source§

fn strict_neg(self) -> Self

Source§

fn strict_abs(self) -> Self

Source§

fn strict_pow(self, exp: u32) -> Self

Source§

unsafe fn unchecked_add(self, rhs: Self) -> Self

Source§

unsafe fn unchecked_exact_div(self, rhs: Self) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_sub(self, rhs: Self) -> Self

Source§

unsafe fn unchecked_mul(self, rhs: Self) -> Self

Source§

unsafe fn unchecked_shl(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_shr(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_exact_shl(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_exact_shr(self, rhs: u32) -> Self

Available on crate feature nightly_backports only.
Source§

unsafe fn unchecked_neg(self) -> Self

Available on crate feature nightly_backports only.
Source§

fn overflowing_add(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_add_unsigned(self, rhs: Self::Uint) -> (Self, bool)

Source§

fn overflowing_sub(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_sub_unsigned(self, rhs: Self::Uint) -> (Self, bool)

Source§

fn overflowing_mul(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_div(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_div_euclid(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_rem(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_rem_euclid(self, rhs: Self) -> (Self, bool)

Source§

fn overflowing_shl(self, rhs: u32) -> (Self, bool)

Source§

fn overflowing_shr(self, rhs: u32) -> (Self, bool)

Source§

fn overflowing_neg(self) -> (Self, bool)

Source§

fn overflowing_abs(self) -> (Self, bool)

Source§

fn overflowing_pow(self, exp: u32) -> (Self, bool)

Source§

fn carrying_add(self, rhs: Self, carry: bool) -> (Self, bool)

Available on crate feature nightly_backports only.
Source§

fn carrying_mul(self, rhs: Self, carry: Self) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source§

fn carrying_mul_add( self, mul: Self, add: Self, carry: Self, ) -> (Self::Uint, Self)

Available on crate feature nightly_backports only.
Source§

fn borrowing_sub(self, rhs: Self, borrow: bool) -> (Self, bool)

Available on crate feature nightly_backports only.
Source§

fn wrapping_add(self, rhs: Self) -> Self

Source§

fn wrapping_add_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn wrapping_sub(self, rhs: Self) -> Self

Source§

fn wrapping_sub_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn wrapping_mul(self, rhs: Self) -> Self

Source§

fn wrapping_div(self, rhs: Self) -> Self

Source§

fn wrapping_div_euclid(self, rhs: Self) -> Self

Source§

fn wrapping_rem(self, rhs: Self) -> Self

Source§

fn wrapping_rem_euclid(self, rhs: Self) -> Self

Source§

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

Source§

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

Source§

fn wrapping_neg(self) -> Self

Source§

fn wrapping_abs(self) -> Self

Source§

fn wrapping_pow(self, exp: u32) -> Self

Source§

fn saturating_add(self, rhs: Self) -> Self

Source§

fn saturating_add_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn saturating_sub(self, rhs: Self) -> Self

Source§

fn saturating_sub_unsigned(self, rhs: Self::Uint) -> Self

Source§

fn saturating_mul(self, rhs: Self) -> Self

Source§

fn saturating_div(self, rhs: Self) -> Self

Source§

fn saturating_neg(self) -> Self

Source§

fn saturating_abs(self) -> Self

Source§

fn saturating_pow(self, exp: u32) -> Self

Source§

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

Source§

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

Source§

fn cast_unsigned(self) -> Self::Uint

Source§

fn to_le(self) -> Self

Source§

fn to_be(self) -> Self

Source§

fn to_ne_bytes(self) -> Self::Bytes

Source§

fn to_le_bytes(self) -> Self::Bytes

Source§

fn to_be_bytes(self) -> Self::Bytes

Implementors§