Trait stdext::num::integer::Integer

source ·
pub trait Integer: Sized + Add<Self, Output = Self> + AddAssign + Sub<Self, Output = Self> + SubAssign + Shr<Self, Output = Self> + ShrAssign + Shl<Self, Output = Self> + ShlAssign + BitAnd<Self, Output = Self> + BitAndAssign + BitOr<Self, Output = Self> + BitOrAssign + BitXor<Self, Output = Self> + BitXorAssign + Div<Self, Output = Self> + DivAssign + Mul<Self, Output = Self> + MulAssign + Copy {
    const MIN: Self;
    const MAX: Self;
    const BITS: u32;
Show 54 methods // Required methods fn from_str_radix(src: &str, radix: u32) -> Result<Self, ParseIntError>; 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>; fn checked_sub(self, rhs: Self) -> 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_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_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_shr(self, rhs: u32) -> (Self, bool); fn overflowing_pow(self, exp: u32) -> (Self, bool); fn pow(self, exp: u32) -> Self; fn div_euclid(self, rhs: Self) -> Self; fn rem_euclid(self, rhs: Self) -> Self;
}
Expand description

Built-in integers interface exposed as a trait.

This trait is implemented for all the built-in integer types and copies their interface completely, so it’s possible to write generic code that accepts any integer number.

Interface includes all the trait implementations as well, such as Copy, Add or BitXorAssign.

§Caveats

  • <to/from/as>_<be/ne/le>_bytes are not implemented, as the return type (array of generic const length that depends on the trait itself) cannot in be expressed in stable rust.

  • is_power_of_two / next_power_of_two / checked_next_power_of_two methods are not implemented, as they exist for the unsigned numbers only.

Required Associated Constants§

source

const MIN: Self

The smallest value that can be represented by this integer type.

source

const MAX: Self

The largest value that can be represented by this integer type.

source

const BITS: u32

The size of this integer type in bits.

Required Methods§

source

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

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

fn checked_sub(self, rhs: Self) -> 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_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_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_shr(self, rhs: u32) -> (Self, bool)

source

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

source

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

See u128::pow.

source

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

source

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Integer for i8

source§

const MIN: Self = -128i8

source§

const MAX: Self = 127i8

source§

const BITS: u32 = 8u32

source§

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

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§

fn checked_sub(self, rhs: Self) -> 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_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_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_shr(self, rhs: u32) -> (Self, bool)

source§

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

source§

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

source§

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

source§

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

source§

impl Integer for i16

source§

const MIN: Self = -32_768i16

source§

const MAX: Self = 32_767i16

source§

const BITS: u32 = 16u32

source§

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

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§

fn checked_sub(self, rhs: Self) -> 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_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_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_shr(self, rhs: u32) -> (Self, bool)

source§

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

source§

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

source§

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

source§

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

source§

impl Integer for i32

source§

const MIN: Self = -2_147_483_648i32

source§

const MAX: Self = 2_147_483_647i32

source§

const BITS: u32 = 32u32

source§

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

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§

fn checked_sub(self, rhs: Self) -> 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_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_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_shr(self, rhs: u32) -> (Self, bool)

source§

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

source§

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

source§

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

source§

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

source§

impl Integer for i64

source§

const MIN: Self = -9_223_372_036_854_775_808i64

source§

const MAX: Self = 9_223_372_036_854_775_807i64

source§

const BITS: u32 = 64u32

source§

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

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§

fn checked_sub(self, rhs: Self) -> 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_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_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_shr(self, rhs: u32) -> (Self, bool)

source§

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

source§

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

source§

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

source§

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

source§

impl Integer for i128

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 BITS: u32 = 128u32

source§

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

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§

fn checked_sub(self, rhs: Self) -> 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_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_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_shr(self, rhs: u32) -> (Self, bool)

source§

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

source§

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

source§

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

source§

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

source§

impl Integer for isize

source§

const MIN: Self = -9_223_372_036_854_775_808isize

source§

const MAX: Self = 9_223_372_036_854_775_807isize

source§

const BITS: u32 = 64u32

source§

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

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§

fn checked_sub(self, rhs: Self) -> 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_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_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_shr(self, rhs: u32) -> (Self, bool)

source§

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

source§

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

source§

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

source§

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

source§

impl Integer for u8

source§

const MIN: Self = 0u8

source§

const MAX: Self = 255u8

source§

const BITS: u32 = 8u32

source§

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

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§

fn checked_sub(self, rhs: Self) -> 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_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_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_shr(self, rhs: u32) -> (Self, bool)

source§

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

source§

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

source§

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

source§

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

source§

impl Integer for u16

source§

const MIN: Self = 0u16

source§

const MAX: Self = 65_535u16

source§

const BITS: u32 = 16u32

source§

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

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§

fn checked_sub(self, rhs: Self) -> 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_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_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_shr(self, rhs: u32) -> (Self, bool)

source§

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

source§

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

source§

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

source§

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

source§

impl Integer for u32

source§

const MIN: Self = 0u32

source§

const MAX: Self = 4_294_967_295u32

source§

const BITS: u32 = 32u32

source§

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

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§

fn checked_sub(self, rhs: Self) -> 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_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_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_shr(self, rhs: u32) -> (Self, bool)

source§

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

source§

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

source§

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

source§

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

source§

impl Integer for u64

source§

const MIN: Self = 0u64

source§

const MAX: Self = 18_446_744_073_709_551_615u64

source§

const BITS: u32 = 64u32

source§

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

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§

fn checked_sub(self, rhs: Self) -> 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_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_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_shr(self, rhs: u32) -> (Self, bool)

source§

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

source§

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

source§

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

source§

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

source§

impl Integer for u128

source§

const MIN: Self = 0u128

source§

const MAX: Self = 340_282_366_920_938_463_463_374_607_431_768_211_455u128

source§

const BITS: u32 = 128u32

source§

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

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§

fn checked_sub(self, rhs: Self) -> 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_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_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_shr(self, rhs: u32) -> (Self, bool)

source§

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

source§

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

source§

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

source§

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

source§

impl Integer for usize

source§

const MIN: Self = 0usize

source§

const MAX: Self = 18_446_744_073_709_551_615usize

source§

const BITS: u32 = 64u32

source§

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

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§

fn checked_sub(self, rhs: Self) -> 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_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_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_shr(self, rhs: u32) -> (Self, bool)

source§

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

source§

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

source§

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

source§

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

Implementors§