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(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, uint) -> 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<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>fn 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_uint(&self) -> Option<uint>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: 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>fn from_int(int) -> Option<i32>fn from_i8(i8) -> Option<i32>fn from_i16(i16) -> Option<i32>fn from_i32(i32) -> Option<i32>fn from_uint(uint) -> 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: uint) -> Option<i32>impl Num for i32impl Primitive for i32impl Zero for i32impl One for i32impl Bounded for i32impl Zeroable 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<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 i32impl<S: Writer> Hash<S> for i32fn hash(&self, state: &mut S)impl Show for i32impl Binary for i32impl Octal for i32impl LowerHex for i32impl UpperHex 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).