Trait Integer

Source
pub trait Integer:
    Number
    + Ord
    + Eq
    + Not
    + BitAnd<Self>
    + for<'a> BitAnd<&'a Self>
    + BitAndAssign<Self>
    + for<'a> BitAndAssign<&'a Self>
    + BitOr<Self>
    + for<'a> BitOr<&'a Self>
    + BitOrAssign<Self>
    + for<'a> BitOrAssign<&'a Self>
    + BitXor<Self>
    + for<'a> BitXor<&'a Self>
    + BitXorAssign<Self>
    + for<'a> BitXorAssign<&'a Self>
    + Shl<Self>
    + for<'a> Shl<&'a Self>
    + ShlAssign<Self>
    + for<'a> ShlAssign<&'a Self>
    + Shr<Self>
    + for<'a> Shr<&'a Self>
    + ShrAssign<Self>
    + for<'a> ShrAssign<&'a Self>
    + TryFrom<u32>
    + TryFrom<u64>
    + TryFrom<u128>
    + TryFrom<usize>
    + TryFrom<i32>
    + TryFrom<i64>
    + TryFrom<i128>
    + TryFrom<isize>
    + TryInto<u8>
    + TryInto<u16>
    + TryInto<u32>
    + TryInto<u64>
    + TryInto<u128>
    + TryInto<usize>
    + TryInto<i8>
    + TryInto<i16>
    + TryInto<i32>
    + TryInto<i64>
    + TryInto<i128>
    + TryInto<isize>
    + Hash
    + Binary
    + Octal
    + LowerHex
    + UpperHex {
    type Unsigned: Unsigned;
    type Signed: Signed;

Show 67 methods // Required methods fn to_unsigned(self) -> Self::Unsigned; fn to_signed(self) -> Self::Signed; fn count_ones(self) -> u32; fn count_zeros(self) -> u32; fn leading_zeros(self) -> u32; fn trailing_zeros(self) -> u32; fn leading_ones(self) -> u32; fn trailing_ones(self) -> u32; fn rotate_left(self, n: u32) -> Self; fn rotate_right(self, n: u32) -> Self; fn swap_bytes(self) -> Self; fn reverse_bits(self) -> Self; fn from_be(x: Self) -> Self; fn from_le(x: Self) -> Self; fn to_be(self) -> Self; fn to_le(self) -> Self; fn checked_add(self, rhs: Self) -> Option<Self>; unsafe fn unchecked_add(self, rhs: Self) -> Self; fn checked_sub(self, rhs: Self) -> Option<Self>; unsafe fn unchecked_sub(self, rhs: Self) -> Self; fn checked_mul(self, rhs: Self) -> Option<Self>; unsafe fn unchecked_mul(self, rhs: Self) -> Self; fn checked_div(self, rhs: Self) -> Option<Self>; fn checked_div_euclid(self, rhs: Self) -> Option<Self>; fn checked_rem(self, rhs: Self) -> Option<Self>; fn checked_rem_euclid(self, rhs: Self) -> Option<Self>; fn checked_neg(self) -> Option<Self>; fn checked_shl(self, rhs: u32) -> Option<Self>; fn checked_shr(self, rhs: u32) -> Option<Self>; fn checked_pow(self, exp: u32) -> Option<Self>; fn saturating_add(self, rhs: Self) -> Self; fn saturating_sub(self, rhs: Self) -> Self; fn saturating_mul(self, rhs: Self) -> Self; fn saturating_div(self, rhs: Self) -> Self; fn saturating_pow(self, exp: u32) -> Self; fn wrapping_add(self, rhs: Self) -> Self; fn wrapping_sub(self, rhs: Self) -> 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_neg(self) -> Self; fn wrapping_shl(self, rhs: u32) -> Self; fn wrapping_shr(self, rhs: u32) -> Self; fn wrapping_pow(self, exp: u32) -> Self; fn overflowing_add(self, rhs: Self) -> (Self, bool); fn overflowing_sub(self, rhs: Self) -> (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_neg(self) -> (Self, bool); fn overflowing_shl(self, rhs: u32) -> (Self, bool); fn overflowing_shr(self, rhs: u32) -> (Self, bool); fn overflowing_pow(self, exp: u32) -> (Self, bool); 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 checked_ilog(self, base: Self) -> Option<u32>; fn checked_ilog2(self) -> Option<u32>; fn checked_ilog10(self) -> Option<u32>; fn abs_diff(self, other: Self) -> Self::Unsigned; fn from_str_radix(src: &str, radix: u32) -> Result<Self, ParseIntError>;
}

Required Associated Types§

Required Methods§

Source

fn to_unsigned(self) -> Self::Unsigned

Source

fn to_signed(self) -> Self::Signed

Source

fn count_ones(self) -> u32

Source

fn count_zeros(self) -> u32

Source

fn leading_zeros(self) -> u32

Source

fn trailing_zeros(self) -> u32

Source

fn leading_ones(self) -> u32

Source

fn trailing_ones(self) -> u32

Source

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

Source

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

Source

fn swap_bytes(self) -> Self

Source

fn reverse_bits(self) -> Self

Source

fn from_be(x: Self) -> Self

Source

fn from_le(x: Self) -> Self

Source

fn to_be(self) -> Self

Source

fn to_le(self) -> Self

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn checked_neg(self) -> Option<Self>

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn wrapping_sub(self, rhs: Self) -> 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_neg(self) -> Self

Source

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

Source

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

Source

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

Source

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

Source

fn overflowing_sub(self, rhs: Self) -> (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_neg(self) -> (Self, bool)

Source

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

Source

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

Source

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

Source

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

See i32::pow.

Source

fn isqrt(self) -> Self

Source

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

See i32::ilog.

Source

fn ilog2(self) -> u32

Source

fn ilog10(self) -> u32

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 abs_diff(self, other: Self) -> Self::Unsigned

Source

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

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 Integer for i8

Source§

type Unsigned = u8

Source§

type Signed = i8

Source§

fn to_unsigned(self) -> Self::Unsigned

Source§

fn to_signed(self) -> Self::Signed

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn trailing_ones(self) -> u32

Source§

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

Source§

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

Source§

fn swap_bytes(self) -> Self

Source§

fn reverse_bits(self) -> Self

Source§

fn from_be(x: Self) -> Self

Source§

fn from_le(x: Self) -> Self

Source§

fn to_be(self) -> Self

Source§

fn to_le(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn checked_neg(self) -> Option<Self>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn wrapping_sub(self, rhs: Self) -> 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_neg(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn overflowing_sub(self, rhs: Self) -> (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_neg(self) -> (Self, bool)

Source§

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

Source§

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

Source§

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

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 checked_ilog(self, base: Self) -> Option<u32>

Source§

fn checked_ilog2(self) -> Option<u32>

Source§

fn checked_ilog10(self) -> Option<u32>

Source§

fn abs_diff(self, other: Self) -> Self::Unsigned

Source§

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

Source§

impl Integer for i16

Source§

type Unsigned = u16

Source§

type Signed = i16

Source§

fn to_unsigned(self) -> Self::Unsigned

Source§

fn to_signed(self) -> Self::Signed

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn trailing_ones(self) -> u32

Source§

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

Source§

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

Source§

fn swap_bytes(self) -> Self

Source§

fn reverse_bits(self) -> Self

Source§

fn from_be(x: Self) -> Self

Source§

fn from_le(x: Self) -> Self

Source§

fn to_be(self) -> Self

Source§

fn to_le(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn checked_neg(self) -> Option<Self>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn wrapping_sub(self, rhs: Self) -> 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_neg(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn overflowing_sub(self, rhs: Self) -> (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_neg(self) -> (Self, bool)

Source§

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

Source§

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

Source§

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

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 checked_ilog(self, base: Self) -> Option<u32>

Source§

fn checked_ilog2(self) -> Option<u32>

Source§

fn checked_ilog10(self) -> Option<u32>

Source§

fn abs_diff(self, other: Self) -> Self::Unsigned

Source§

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

Source§

impl Integer for i32

Source§

type Unsigned = u32

Source§

type Signed = i32

Source§

fn to_unsigned(self) -> Self::Unsigned

Source§

fn to_signed(self) -> Self::Signed

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn trailing_ones(self) -> u32

Source§

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

Source§

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

Source§

fn swap_bytes(self) -> Self

Source§

fn reverse_bits(self) -> Self

Source§

fn from_be(x: Self) -> Self

Source§

fn from_le(x: Self) -> Self

Source§

fn to_be(self) -> Self

Source§

fn to_le(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn checked_neg(self) -> Option<Self>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn wrapping_sub(self, rhs: Self) -> 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_neg(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn overflowing_sub(self, rhs: Self) -> (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_neg(self) -> (Self, bool)

Source§

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

Source§

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

Source§

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

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 checked_ilog(self, base: Self) -> Option<u32>

Source§

fn checked_ilog2(self) -> Option<u32>

Source§

fn checked_ilog10(self) -> Option<u32>

Source§

fn abs_diff(self, other: Self) -> Self::Unsigned

Source§

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

Source§

impl Integer for i64

Source§

type Unsigned = u64

Source§

type Signed = i64

Source§

fn to_unsigned(self) -> Self::Unsigned

Source§

fn to_signed(self) -> Self::Signed

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn trailing_ones(self) -> u32

Source§

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

Source§

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

Source§

fn swap_bytes(self) -> Self

Source§

fn reverse_bits(self) -> Self

Source§

fn from_be(x: Self) -> Self

Source§

fn from_le(x: Self) -> Self

Source§

fn to_be(self) -> Self

Source§

fn to_le(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn checked_neg(self) -> Option<Self>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn wrapping_sub(self, rhs: Self) -> 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_neg(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn overflowing_sub(self, rhs: Self) -> (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_neg(self) -> (Self, bool)

Source§

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

Source§

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

Source§

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

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 checked_ilog(self, base: Self) -> Option<u32>

Source§

fn checked_ilog2(self) -> Option<u32>

Source§

fn checked_ilog10(self) -> Option<u32>

Source§

fn abs_diff(self, other: Self) -> Self::Unsigned

Source§

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

Source§

impl Integer for i128

Source§

type Unsigned = u128

Source§

type Signed = i128

Source§

fn to_unsigned(self) -> Self::Unsigned

Source§

fn to_signed(self) -> Self::Signed

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn trailing_ones(self) -> u32

Source§

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

Source§

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

Source§

fn swap_bytes(self) -> Self

Source§

fn reverse_bits(self) -> Self

Source§

fn from_be(x: Self) -> Self

Source§

fn from_le(x: Self) -> Self

Source§

fn to_be(self) -> Self

Source§

fn to_le(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn checked_neg(self) -> Option<Self>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn wrapping_sub(self, rhs: Self) -> 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_neg(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn overflowing_sub(self, rhs: Self) -> (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_neg(self) -> (Self, bool)

Source§

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

Source§

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

Source§

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

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 checked_ilog(self, base: Self) -> Option<u32>

Source§

fn checked_ilog2(self) -> Option<u32>

Source§

fn checked_ilog10(self) -> Option<u32>

Source§

fn abs_diff(self, other: Self) -> Self::Unsigned

Source§

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

Source§

impl Integer for isize

Source§

type Unsigned = usize

Source§

type Signed = isize

Source§

fn to_unsigned(self) -> Self::Unsigned

Source§

fn to_signed(self) -> Self::Signed

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn trailing_ones(self) -> u32

Source§

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

Source§

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

Source§

fn swap_bytes(self) -> Self

Source§

fn reverse_bits(self) -> Self

Source§

fn from_be(x: Self) -> Self

Source§

fn from_le(x: Self) -> Self

Source§

fn to_be(self) -> Self

Source§

fn to_le(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn checked_neg(self) -> Option<Self>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn wrapping_sub(self, rhs: Self) -> 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_neg(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn overflowing_sub(self, rhs: Self) -> (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_neg(self) -> (Self, bool)

Source§

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

Source§

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

Source§

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

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 checked_ilog(self, base: Self) -> Option<u32>

Source§

fn checked_ilog2(self) -> Option<u32>

Source§

fn checked_ilog10(self) -> Option<u32>

Source§

fn abs_diff(self, other: Self) -> Self::Unsigned

Source§

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

Source§

impl Integer for u8

Source§

type Unsigned = u8

Source§

type Signed = i8

Source§

fn to_unsigned(self) -> Self::Unsigned

Source§

fn to_signed(self) -> Self::Signed

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn trailing_ones(self) -> u32

Source§

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

Source§

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

Source§

fn swap_bytes(self) -> Self

Source§

fn reverse_bits(self) -> Self

Source§

fn from_be(x: Self) -> Self

Source§

fn from_le(x: Self) -> Self

Source§

fn to_be(self) -> Self

Source§

fn to_le(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn checked_neg(self) -> Option<Self>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn wrapping_sub(self, rhs: Self) -> 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_neg(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn overflowing_sub(self, rhs: Self) -> (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_neg(self) -> (Self, bool)

Source§

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

Source§

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

Source§

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

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 checked_ilog(self, base: Self) -> Option<u32>

Source§

fn checked_ilog2(self) -> Option<u32>

Source§

fn checked_ilog10(self) -> Option<u32>

Source§

fn abs_diff(self, other: Self) -> Self::Unsigned

Source§

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

Source§

impl Integer for u16

Source§

type Unsigned = u16

Source§

type Signed = i16

Source§

fn to_unsigned(self) -> Self::Unsigned

Source§

fn to_signed(self) -> Self::Signed

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn trailing_ones(self) -> u32

Source§

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

Source§

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

Source§

fn swap_bytes(self) -> Self

Source§

fn reverse_bits(self) -> Self

Source§

fn from_be(x: Self) -> Self

Source§

fn from_le(x: Self) -> Self

Source§

fn to_be(self) -> Self

Source§

fn to_le(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn checked_neg(self) -> Option<Self>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn wrapping_sub(self, rhs: Self) -> 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_neg(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn overflowing_sub(self, rhs: Self) -> (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_neg(self) -> (Self, bool)

Source§

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

Source§

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

Source§

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

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 checked_ilog(self, base: Self) -> Option<u32>

Source§

fn checked_ilog2(self) -> Option<u32>

Source§

fn checked_ilog10(self) -> Option<u32>

Source§

fn abs_diff(self, other: Self) -> Self::Unsigned

Source§

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

Source§

impl Integer for u32

Source§

type Unsigned = u32

Source§

type Signed = i32

Source§

fn to_unsigned(self) -> Self::Unsigned

Source§

fn to_signed(self) -> Self::Signed

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn trailing_ones(self) -> u32

Source§

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

Source§

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

Source§

fn swap_bytes(self) -> Self

Source§

fn reverse_bits(self) -> Self

Source§

fn from_be(x: Self) -> Self

Source§

fn from_le(x: Self) -> Self

Source§

fn to_be(self) -> Self

Source§

fn to_le(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn checked_neg(self) -> Option<Self>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn wrapping_sub(self, rhs: Self) -> 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_neg(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn overflowing_sub(self, rhs: Self) -> (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_neg(self) -> (Self, bool)

Source§

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

Source§

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

Source§

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

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 checked_ilog(self, base: Self) -> Option<u32>

Source§

fn checked_ilog2(self) -> Option<u32>

Source§

fn checked_ilog10(self) -> Option<u32>

Source§

fn abs_diff(self, other: Self) -> Self::Unsigned

Source§

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

Source§

impl Integer for u64

Source§

type Unsigned = u64

Source§

type Signed = i64

Source§

fn to_unsigned(self) -> Self::Unsigned

Source§

fn to_signed(self) -> Self::Signed

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn trailing_ones(self) -> u32

Source§

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

Source§

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

Source§

fn swap_bytes(self) -> Self

Source§

fn reverse_bits(self) -> Self

Source§

fn from_be(x: Self) -> Self

Source§

fn from_le(x: Self) -> Self

Source§

fn to_be(self) -> Self

Source§

fn to_le(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn checked_neg(self) -> Option<Self>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn wrapping_sub(self, rhs: Self) -> 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_neg(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn overflowing_sub(self, rhs: Self) -> (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_neg(self) -> (Self, bool)

Source§

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

Source§

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

Source§

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

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 checked_ilog(self, base: Self) -> Option<u32>

Source§

fn checked_ilog2(self) -> Option<u32>

Source§

fn checked_ilog10(self) -> Option<u32>

Source§

fn abs_diff(self, other: Self) -> Self::Unsigned

Source§

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

Source§

impl Integer for u128

Source§

type Unsigned = u128

Source§

type Signed = i128

Source§

fn to_unsigned(self) -> Self::Unsigned

Source§

fn to_signed(self) -> Self::Signed

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn trailing_ones(self) -> u32

Source§

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

Source§

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

Source§

fn swap_bytes(self) -> Self

Source§

fn reverse_bits(self) -> Self

Source§

fn from_be(x: Self) -> Self

Source§

fn from_le(x: Self) -> Self

Source§

fn to_be(self) -> Self

Source§

fn to_le(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn checked_neg(self) -> Option<Self>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn wrapping_sub(self, rhs: Self) -> 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_neg(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn overflowing_sub(self, rhs: Self) -> (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_neg(self) -> (Self, bool)

Source§

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

Source§

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

Source§

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

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 checked_ilog(self, base: Self) -> Option<u32>

Source§

fn checked_ilog2(self) -> Option<u32>

Source§

fn checked_ilog10(self) -> Option<u32>

Source§

fn abs_diff(self, other: Self) -> Self::Unsigned

Source§

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

Source§

impl Integer for usize

Source§

type Unsigned = usize

Source§

type Signed = isize

Source§

fn to_unsigned(self) -> Self::Unsigned

Source§

fn to_signed(self) -> Self::Signed

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn trailing_ones(self) -> u32

Source§

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

Source§

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

Source§

fn swap_bytes(self) -> Self

Source§

fn reverse_bits(self) -> Self

Source§

fn from_be(x: Self) -> Self

Source§

fn from_le(x: Self) -> Self

Source§

fn to_be(self) -> Self

Source§

fn to_le(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn checked_neg(self) -> Option<Self>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn wrapping_sub(self, rhs: Self) -> 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_neg(self) -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn overflowing_sub(self, rhs: Self) -> (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_neg(self) -> (Self, bool)

Source§

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

Source§

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

Source§

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

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 checked_ilog(self, base: Self) -> Option<u32>

Source§

fn checked_ilog2(self) -> Option<u32>

Source§

fn checked_ilog10(self) -> Option<u32>

Source§

fn abs_diff(self, other: Self) -> Self::Unsigned

Source§

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

Implementors§