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(x: Self) -> Selffn from_le(x: Self) -> Selffn to_be(self) -> Selffn to_le(self) -> Selffn saturating_add(self, other: Self) -> Selffn saturating_sub(self, other: Self) -> Selffn pow(self, exp: usize) -> Selfimpl 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>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>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 for i32impl Sub for i32impl Mul for i32impl Div for i32impl Rem for i32impl Neg for i32impl Not for i32impl BitAnd for i32impl BitOr for i32impl BitXor for i32impl Shl<usize> for i32impl Shr<usize> for i32impl PartialEq for i32impl Eq for i32impl PartialOrd 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) -> 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: Writer + Hasher> 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 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).