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: ToPrimitive>(n: N) -> Option<i32>impl FromStr for i32impl FromStrRadix for i32fn from_str_radix(src: &str, radix: usize) -> Option<i32>impl Zeroable for i32impl Add<i32> for i32impl Sub<i32> for i32impl Mul<i32> for i32impl Div<i32> for i32impl Rem<i32> for i32impl Neg for i32impl Not for i32impl BitAnd<i32> for i32impl BitOr<i32> for i32impl BitXor<i32> for i32impl Shl<usize> for i32impl Shr<usize> for i32impl 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 Step for i32fn step(&mut self)fn step_back(&mut self)fn steps_between(start: &i32, end: &i32) -> Option<usize>impl<S: Hasher + Writer> Hash<S> for i32fn hash(&self, state: &mut S)impl String for i32impl Binary for i32impl Octal for i32impl LowerHex for i32impl UpperHex for i32impl Show for i32impl SampleRange for i32fn construct_range(low: i32, high: i32) -> Range<i32>fn sample_range<R: Rng>(r: &Range<i32>, rng: &mut R) -> i32impl 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).