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) -> uintfn leading_zeros(self) -> uintfn trailing_zeros(self) -> uintfn rotate_left(self, n: uint) -> i32fn rotate_right(self, n: uint) -> 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) -> uintfn 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) -> 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<int>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<uint>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: int) -> 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: uint) -> 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 Num for i32impl Primitive for i32impl Zero for i32impl One for i32impl Bounded for i32impl Add<i32, i32> for i32impl Sub<i32, i32> for i32impl Mul<i32, i32> for i32impl Div<i32, i32> for i32impl Rem<i32, i32> for i32impl Neg<i32> for i32impl Not<i32> for i32impl BitAnd<i32, i32> for i32impl BitOr<i32, i32> for i32impl BitXor<i32, i32> for i32impl Shl<uint, i32> for i32impl Shr<uint, i32> 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 Show for i32impl Signed for i32impl Binary for i32impl Octal for i32impl LowerHex for i32impl UpperHex 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).