Primitive Type int [-]  [+]

Operations and constants for architecture-sized signed integers (int type)

Trait Implementations

impl Int for int

fn zero() -> int

fn one() -> int

fn min_value() -> int

fn max_value() -> int

fn count_ones(self) -> uint

fn leading_zeros(self) -> uint

fn trailing_zeros(self) -> uint

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

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

fn swap_bytes(self) -> int

fn checked_add(self, other: int) -> Option<int>

fn checked_sub(self, other: int) -> Option<int>

fn checked_mul(self, other: int) -> Option<int>

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

fn count_zeros(self) -> uint

fn from_be(int) -> int

fn from_le(int) -> int

fn to_be(self) -> int

fn to_le(self) -> int

fn saturating_add(self, int) -> int

fn saturating_sub(self, int) -> int

fn pow(self, uint) -> int

impl SignedInt for int

fn abs(self) -> int

fn signum(self) -> int

fn is_positive(self) -> bool

fn is_negative(self) -> bool

impl ToPrimitive for int

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 int

fn from_int(n: int) -> Option<int>

fn from_i8(n: i8) -> Option<int>

fn from_i16(n: i16) -> Option<int>

fn from_i32(n: i32) -> Option<int>

fn from_i64(n: i64) -> Option<int>

fn from_uint(n: uint) -> Option<int>

fn from_u8(n: u8) -> Option<int>

fn from_u16(n: u16) -> Option<int>

fn from_u32(n: u32) -> Option<int>

fn from_u64(n: u64) -> Option<int>

fn from_f32(n: f32) -> Option<int>

fn from_f64(n: f64) -> Option<int>

fn from_int(int) -> Option<int>

fn from_i8(i8) -> Option<int>

fn from_i16(i16) -> Option<int>

fn from_i32(i32) -> Option<int>

fn from_uint(uint) -> Option<int>

fn from_u8(u8) -> Option<int>

fn from_u16(u16) -> Option<int>

fn from_u32(u32) -> Option<int>

fn from_f32(f32) -> Option<int>

fn from_f64(f64) -> Option<int>

impl NumCast for int

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

impl FromStr for int

fn from_str(src: &str) -> Option<int>

impl FromStrRadix for int

fn from_str_radix(src: &str, radix: uint) -> Option<int>

impl Num for int

impl Primitive for int

impl Zero for int

fn zero() -> int

fn is_zero(&self) -> bool

impl One for int

fn one() -> int

impl Bounded for int

fn min_value() -> int

fn max_value() -> int

impl Zeroable for int

impl Add<int, int> for int

fn add(self, other: int) -> int

impl Sub<int, int> for int

fn sub(self, other: int) -> int

impl Mul<int, int> for int

fn mul(self, other: int) -> int

impl Div<int, int> for int

fn div(self, other: int) -> int

impl Rem<int, int> for int

fn rem(self, other: int) -> int

impl Neg<int> for int

fn neg(self) -> int

impl Not<int> for int

fn not(self) -> int

impl BitAnd<int, int> for int

fn bitand(self, rhs: int) -> int

impl BitOr<int, int> for int

fn bitor(self, rhs: int) -> int

impl BitXor<int, int> for int

fn bitxor(self, other: int) -> int

impl Shl<uint, int> for int

fn shl(self, other: uint) -> int

impl Shr<uint, int> for int

fn shr(self, other: uint) -> int

impl PartialEq<int> for int

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

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

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

impl Eq for int

fn assert_receiver_is_total_eq(&self)

impl PartialOrd<int> for int

fn partial_cmp(&self, other: &int) -> Option<Ordering>

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

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

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

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

fn lt(&self, &int) -> bool

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

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

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

impl Ord for int

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

impl Clone for int

fn clone(&self) -> int

Return a deep copy of the value.

fn clone_from(&mut self, &int)

impl Default for int

fn default() -> int

impl Step for int

fn step(&mut self)

fn step_back(&mut self)

fn steps_between(a: &int, b: &int) -> Option<uint>

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

fn hash(&self, state: &mut S)

impl Show for int

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

impl Binary for int

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

impl Octal for int

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

impl LowerHex for int

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

impl UpperHex for int

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

impl SampleRange for int

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

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

impl Rand for int

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