Primitive Type intUnstable

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

Trait Implementations

impl FromStr for int

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

impl FromStrRadix for int

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

impl ToStrRadix for int

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

Convert to a string in a given base.

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

impl NumStrConv for int

fn nan() -> Option<int>

fn inf() -> Option<int>

fn neg_inf() -> Option<int>

fn neg_zero() -> Option<int>

fn round_to_zero(&self) -> int

fn fractional_part(&self) -> int

impl Num for int

impl Zero for int

fn zero() -> int

fn is_zero(&self) -> bool

impl One for int

fn one() -> int

impl Signed for int

fn abs(&self) -> int

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

fn signum(&self) -> int

fn is_positive(&self) -> bool

fn is_negative(&self) -> bool

impl Bounded for int

fn min_value() -> int

fn max_value() -> int

impl Primitive for int

impl Int for int

fn count_ones(self) -> int

fn leading_zeros(self) -> int

fn trailing_zeros(self) -> int

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

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

fn swap_bytes(self) -> int

fn count_zeros(self) -> int

fn from_be(int) -> int

fn from_le(int) -> int

fn to_be(self) -> int

fn to_le(self) -> int

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 CheckedAdd for int

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

impl CheckedSub for int

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

impl CheckedMul for int

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

impl CheckedDiv for int

fn checked_div(&self, v: &int) -> Option<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<int, int> for int

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

impl Shr<int, int> for int

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

impl PartialEq 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 for int

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 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 Show for int

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

impl Signed for int

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

impl Binary for int

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

impl Octal for int

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

impl LowerHex for int

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

impl UpperHex for int

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

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

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