Primitive Type i32Unstable

Operations and constants for signed 32-bits integers (i32 type)

Trait Implementations

impl FromStr for i32

fn from_str(s: &str) -> Option<i32>

impl FromStrRadix for i32

fn from_str_radix(s: &str, radix: uint) -> Option<i32>

impl ToStrRadix for i32

fn to_str_radix(&self, radix: uint) -> String

Convert to a string in a given base.

impl SampleRange for i32

fn construct_range(low: i32, high: i32) -> Range<i32>

fn sample_range<R: Rng>(r: &Range<i32>, rng: &mut R) -> i32

impl Rand for i32

fn rand<R: Rng>(rng: &mut R) -> i32

impl NumStrConv for i32

fn nan() -> Option<i32>

fn inf() -> Option<i32>

fn neg_inf() -> Option<i32>

fn neg_zero() -> Option<i32>

fn round_to_zero(&self) -> i32

fn fractional_part(&self) -> i32

impl Num for i32

impl Zero for i32

fn zero() -> i32

fn is_zero(&self) -> bool

impl One for i32

fn one() -> i32

impl Signed for i32

fn abs(&self) -> i32

fn abs_sub(&self, other: &i32) -> i32

fn signum(&self) -> i32

fn is_positive(&self) -> bool

fn is_negative(&self) -> bool

impl Bounded for i32

fn min_value() -> i32

fn max_value() -> i32

impl Primitive for i32

impl Int for i32

fn count_ones(self) -> i32

fn leading_zeros(self) -> i32

fn trailing_zeros(self) -> i32

fn rotate_left(self, n: uint) -> i32

fn rotate_right(self, n: uint) -> i32

fn swap_bytes(self) -> i32

fn count_zeros(self) -> i32

fn from_be(i32) -> i32

fn from_le(i32) -> i32

fn to_be(self) -> i32

fn to_le(self) -> i32

impl ToPrimitive for i32

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_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 i32

fn 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 i32

fn from<N: ToPrimitive>(n: N) -> Option<i32>

impl CheckedAdd for i32

fn checked_add(&self, v: &i32) -> Option<i32>

impl CheckedSub for i32

fn checked_sub(&self, v: &i32) -> Option<i32>

impl CheckedMul for i32

fn checked_mul(&self, v: &i32) -> Option<i32>

impl CheckedDiv for i32

fn checked_div(&self, v: &i32) -> Option<i32>

impl Add<i32, i32> for i32

fn add(&self, other: &i32) -> i32

impl Sub<i32, i32> for i32

fn sub(&self, other: &i32) -> i32

impl Mul<i32, i32> for i32

fn mul(&self, other: &i32) -> i32

impl Div<i32, i32> for i32

fn div(&self, other: &i32) -> i32

impl Rem<i32, i32> for i32

fn rem(&self, other: &i32) -> i32

impl Neg<i32> for i32

fn neg(&self) -> i32

impl Not<i32> for i32

fn not(&self) -> i32

impl BitAnd<i32, i32> for i32

fn bitand(&self, rhs: &i32) -> i32

impl BitOr<i32, i32> for i32

fn bitor(&self, rhs: &i32) -> i32

impl BitXor<i32, i32> for i32

fn bitxor(&self, other: &i32) -> i32

impl Shl<i32, i32> for i32

fn shl(&self, other: &i32) -> i32

impl Shr<i32, i32> for i32

fn shr(&self, other: &i32) -> i32

impl PartialEq for i32

fn eq(&self, other: &i32) -> bool

fn ne(&self, other: &i32) -> bool

fn ne(&self, &i32) -> bool

impl Eq for i32

fn assert_receiver_is_total_eq(&self)

impl PartialOrd for i32

fn lt(&self, other: &i32) -> bool

fn le(&self, other: &i32) -> bool

fn ge(&self, other: &i32) -> bool

fn gt(&self, other: &i32) -> bool

fn le(&self, &i32) -> bool

fn gt(&self, &i32) -> bool

fn ge(&self, &i32) -> bool

impl Ord for i32

fn cmp(&self, other: &i32) -> Ordering

impl Clone for i32

fn clone(&self) -> i32

Return a deep copy of the value.

fn clone_from(&mut self, &i32)

impl Default for i32

fn default() -> i32

impl Show for i32

fn fmt(&self, f: &mut Formatter) -> Result<(), FormatError>

impl Signed for i32

fn fmt(&self, f: &mut Formatter) -> Result<(), FormatError>

impl Binary for i32

fn fmt(&self, f: &mut Formatter) -> Result<(), FormatError>

impl Octal for i32

fn fmt(&self, f: &mut Formatter) -> Result<(), FormatError>

impl LowerHex for i32

fn fmt(&self, f: &mut Formatter) -> Result<(), FormatError>

impl UpperHex for i32

fn fmt(&self, f: &mut Formatter) -> Result<(), FormatError>

impl<S: Writer> Hash<S> for i32

fn hash<S: Writer>(&self, state: &mut S)