Primitive Type i32
[-]
[+]
Operations and constants for signed 32-bits integers (i32 type)
Operations and constants for signed 32-bits integers (i32 type)
impl Int for i32fn zero() -> i32fn one() -> i32fn min_value() -> i32fn max_value() -> i32fn count_ones(self) -> usizefn leading_zeros(self) -> usizefn trailing_zeros(self) -> usizefn rotate_left(self, n: usize) -> i32fn rotate_right(self, n: usize) -> i32fn swap_bytes(self) -> i32fn checked_add(self, other: i32) -> Option<i32>fn checked_sub(self, other: i32) -> Option<i32>fn checked_mul(self, other: i32) -> Option<i32>fn checked_div(self, v: i32) -> Option<i32>fn count_zeros(self) -> usizefn from_be(i32) -> i32fn from_le(i32) -> i32fn to_be(self) -> i32fn to_le(self) -> i32fn saturating_add(self, i32) -> i32fn saturating_sub(self, i32) -> i32fn pow(self, usize) -> i32impl SignedInt for i32fn abs(self) -> i32fn signum(self) -> i32fn is_positive(self) -> boolfn is_negative(self) -> boolimpl ToPrimitive for i32fn to_int(&self) -> Option<isize>fn to_i8(&self) -> Option<i8>fn to_i16(&self) -> Option<i16>fn to_i32(&self) -> Option<i32>fn to_i64(&self) -> Option<i64>fn to_uint(&self) -> Option<usize>fn to_u8(&self) -> Option<u8>fn to_u16(&self) -> Option<u16>fn to_u32(&self) -> Option<u32>fn to_u64(&self) -> Option<u64>fn to_f32(&self) -> Option<f32>fn to_f64(&self) -> Option<f64>fn to_int(&self) -> Option<isize>fn to_i8(&self) -> Option<i8>fn to_i16(&self) -> Option<i16>fn to_i32(&self) -> Option<i32>fn to_uint(&self) -> Option<usize>fn to_u8(&self) -> Option<u8>fn to_u16(&self) -> Option<u16>fn to_u32(&self) -> Option<u32>fn to_f32(&self) -> Option<f32>fn to_f64(&self) -> Option<f64>impl FromPrimitive for i32fn from_int(n: isize) -> Option<i32>fn from_i8(n: i8) -> Option<i32>fn from_i16(n: i16) -> Option<i32>fn from_i32(n: i32) -> Option<i32>fn from_i64(n: i64) -> Option<i32>fn from_uint(n: usize) -> Option<i32>fn from_u8(n: u8) -> Option<i32>fn from_u16(n: u16) -> Option<i32>fn from_u32(n: u32) -> Option<i32>fn from_u64(n: u64) -> Option<i32>fn from_f32(n: f32) -> Option<i32>fn from_f64(n: f64) -> Option<i32>fn from_int(isize) -> Option<i32>fn from_i8(i8) -> Option<i32>fn from_i16(i16) -> Option<i32>fn from_i32(i32) -> Option<i32>fn from_uint(usize) -> Option<i32>fn from_u8(u8) -> Option<i32>fn from_u16(u16) -> Option<i32>fn from_u32(u32) -> Option<i32>fn from_f32(f32) -> Option<i32>fn from_f64(f64) -> Option<i32>impl NumCast for i32fn from<N>(n: N) -> Option<i32> where N: ToPrimitiveimpl FromStr for i32type Err = ParseIntErrorfn from_str(src: &str) -> Result<i32, ParseIntError>impl FromStrRadix for i32type Err = ParseIntErrorfn from_str_radix(src: &str, radix: usize) -> Result<i32, ParseIntError>impl Zeroable for i32impl Add<i32> for i32impl<'a> Add<i32> for &'a i32impl<'a> Add<&'a i32> for i32impl<'a, 'b> Add<&'a i32> for &'b i32impl Sub<i32> for i32impl<'a> Sub<i32> for &'a i32impl<'a> Sub<&'a i32> for i32impl<'a, 'b> Sub<&'a i32> for &'b i32impl Mul<i32> for i32impl<'a> Mul<i32> for &'a i32impl<'a> Mul<&'a i32> for i32impl<'a, 'b> Mul<&'a i32> for &'b i32impl Div<i32> for i32impl<'a> Div<i32> for &'a i32impl<'a> Div<&'a i32> for i32impl<'a, 'b> Div<&'a i32> for &'b i32impl Rem<i32> for i32impl<'a> Rem<i32> for &'a i32impl<'a> Rem<&'a i32> for i32impl<'a, 'b> Rem<&'a i32> for &'b i32impl Neg for i32impl<'a> Neg for &'a i32impl Not for i32impl<'a> Not for &'a i32impl BitAnd<i32> for i32impl<'a> BitAnd<i32> for &'a i32type Output = <i32 as BitAnd<i32>>::Outputfn bitand(self, other: i32) -> <i32 as BitAnd<i32>>::Outputimpl<'a> BitAnd<&'a i32> for i32type Output = <i32 as BitAnd<i32>>::Outputfn bitand(self, other: &'a i32) -> <i32 as BitAnd<i32>>::Outputimpl<'a, 'b> BitAnd<&'a i32> for &'b i32type Output = <i32 as BitAnd<i32>>::Outputfn bitand(self, other: &'a i32) -> <i32 as BitAnd<i32>>::Outputimpl BitOr<i32> for i32impl<'a> BitOr<i32> for &'a i32impl<'a> BitOr<&'a i32> for i32type Output = <i32 as BitOr<i32>>::Outputfn bitor(self, other: &'a i32) -> <i32 as BitOr<i32>>::Outputimpl<'a, 'b> BitOr<&'a i32> for &'b i32type Output = <i32 as BitOr<i32>>::Outputfn bitor(self, other: &'a i32) -> <i32 as BitOr<i32>>::Outputimpl BitXor<i32> for i32impl<'a> BitXor<i32> for &'a i32type Output = <i32 as BitXor<i32>>::Outputfn bitxor(self, other: i32) -> <i32 as BitXor<i32>>::Outputimpl<'a> BitXor<&'a i32> for i32type Output = <i32 as BitXor<i32>>::Outputfn bitxor(self, other: &'a i32) -> <i32 as BitXor<i32>>::Outputimpl<'a, 'b> BitXor<&'a i32> for &'b i32type Output = <i32 as BitXor<i32>>::Outputfn bitxor(self, other: &'a i32) -> <i32 as BitXor<i32>>::Outputimpl Shl<u8> for i32impl<'a> Shl<u8> for &'a i32impl<'a> Shl<&'a u8> for i32impl<'a, 'b> Shl<&'a u8> for &'b i32impl Shl<u16> for i32impl<'a> Shl<u16> for &'a i32impl<'a> Shl<&'a u16> for i32impl<'a, 'b> Shl<&'a u16> for &'b i32impl Shl<u32> for i32impl<'a> Shl<u32> for &'a i32impl<'a> Shl<&'a u32> for i32impl<'a, 'b> Shl<&'a u32> for &'b i32impl Shl<u64> for i32impl<'a> Shl<u64> for &'a i32impl<'a> Shl<&'a u64> for i32impl<'a, 'b> Shl<&'a u64> for &'b i32impl Shl<usize> for i32impl<'a> Shl<usize> for &'a i32impl<'a> Shl<&'a usize> for i32type Output = <i32 as Shl<usize>>::Outputfn shl(self, other: &'a usize) -> <i32 as Shl<usize>>::Outputimpl<'a, 'b> Shl<&'a usize> for &'b i32type Output = <i32 as Shl<usize>>::Outputfn shl(self, other: &'a usize) -> <i32 as Shl<usize>>::Outputimpl Shl<i8> for i32impl<'a> Shl<i8> for &'a i32impl<'a> Shl<&'a i8> for i32impl<'a, 'b> Shl<&'a i8> for &'b i32impl Shl<i16> for i32impl<'a> Shl<i16> for &'a i32impl<'a> Shl<&'a i16> for i32impl<'a, 'b> Shl<&'a i16> for &'b i32impl Shl<i32> for i32impl<'a> Shl<i32> for &'a i32impl<'a> Shl<&'a i32> for i32impl<'a, 'b> Shl<&'a i32> for &'b i32impl Shl<i64> for i32impl<'a> Shl<i64> for &'a i32impl<'a> Shl<&'a i64> for i32impl<'a, 'b> Shl<&'a i64> for &'b i32impl Shl<isize> for i32impl<'a> Shl<isize> for &'a i32impl<'a> Shl<&'a isize> for i32type Output = <i32 as Shl<isize>>::Outputfn shl(self, other: &'a isize) -> <i32 as Shl<isize>>::Outputimpl<'a, 'b> Shl<&'a isize> for &'b i32type Output = <i32 as Shl<isize>>::Outputfn shl(self, other: &'a isize) -> <i32 as Shl<isize>>::Outputimpl Shr<u8> for i32impl<'a> Shr<u8> for &'a i32impl<'a> Shr<&'a u8> for i32impl<'a, 'b> Shr<&'a u8> for &'b i32impl Shr<u16> for i32impl<'a> Shr<u16> for &'a i32impl<'a> Shr<&'a u16> for i32impl<'a, 'b> Shr<&'a u16> for &'b i32impl Shr<u32> for i32impl<'a> Shr<u32> for &'a i32impl<'a> Shr<&'a u32> for i32impl<'a, 'b> Shr<&'a u32> for &'b i32impl Shr<u64> for i32impl<'a> Shr<u64> for &'a i32impl<'a> Shr<&'a u64> for i32impl<'a, 'b> Shr<&'a u64> for &'b i32impl Shr<usize> for i32impl<'a> Shr<usize> for &'a i32impl<'a> Shr<&'a usize> for i32type Output = <i32 as Shr<usize>>::Outputfn shr(self, other: &'a usize) -> <i32 as Shr<usize>>::Outputimpl<'a, 'b> Shr<&'a usize> for &'b i32type Output = <i32 as Shr<usize>>::Outputfn shr(self, other: &'a usize) -> <i32 as Shr<usize>>::Outputimpl Shr<i8> for i32impl<'a> Shr<i8> for &'a i32impl<'a> Shr<&'a i8> for i32impl<'a, 'b> Shr<&'a i8> for &'b i32impl Shr<i16> for i32impl<'a> Shr<i16> for &'a i32impl<'a> Shr<&'a i16> for i32impl<'a, 'b> Shr<&'a i16> for &'b i32impl Shr<i32> for i32impl<'a> Shr<i32> for &'a i32impl<'a> Shr<&'a i32> for i32impl<'a, 'b> Shr<&'a i32> for &'b i32impl Shr<i64> for i32impl<'a> Shr<i64> for &'a i32impl<'a> Shr<&'a i64> for i32impl<'a, 'b> Shr<&'a i64> for &'b i32impl Shr<isize> for i32impl<'a> Shr<isize> for &'a i32impl<'a> Shr<&'a isize> for i32type Output = <i32 as Shr<isize>>::Outputfn shr(self, other: &'a isize) -> <i32 as Shr<isize>>::Outputimpl<'a, 'b> Shr<&'a isize> for &'b i32type Output = <i32 as Shr<isize>>::Outputfn shr(self, other: &'a isize) -> <i32 as Shr<isize>>::Outputimpl PartialEq<i32> for i32impl Eq for i32fn assert_receiver_is_total_eq(&self)impl PartialOrd<i32> for i32fn partial_cmp(&self, other: &i32) -> Option<Ordering>fn lt(&self, other: &i32) -> boolfn le(&self, other: &i32) -> boolfn ge(&self, other: &i32) -> boolfn gt(&self, other: &i32) -> boolfn lt(&self, &i32) -> boolfn le(&self, &i32) -> boolfn gt(&self, &i32) -> boolfn ge(&self, &i32) -> boolimpl Ord for i32impl Clone for i32impl Default for i32impl<S> Hash<S> for i32 where S: Hasher, S: Writerfn hash(&self, state: &mut S)impl Display for i32impl Binary for i32impl Octal for i32impl LowerHex for i32impl UpperHex for i32impl Debug for i32impl SampleRange for i32fn construct_range(low: i32, high: i32) -> Range<i32>fn sample_range<R>(r: &Range<i32>, rng: &mut R) -> i32 where R: Rngimpl Rand for i32
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct, enum,
trait, typedef (or
tdef).