Primitive Type int
[-]
[+]
Operations and constants for architecture-sized signed integers (int type)
Operations and constants for architecture-sized signed integers (int type)
impl Int for intfn zero() -> intfn one() -> intfn min_value() -> intfn max_value() -> intfn count_ones(self) -> uintfn leading_zeros(self) -> uintfn trailing_zeros(self) -> uintfn rotate_left(self, n: uint) -> intfn rotate_right(self, n: uint) -> intfn swap_bytes(self) -> intfn 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) -> uintfn from_be(int) -> intfn from_le(int) -> intfn to_be(self) -> intfn to_le(self) -> intfn saturating_add(self, int) -> intfn saturating_sub(self, int) -> intfn pow(self, uint) -> intimpl SignedInt for intfn abs(self) -> intfn signum(self) -> intfn is_positive(self) -> boolfn is_negative(self) -> boolimpl ToPrimitive for intfn 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 intfn 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 intfn from<N: ToPrimitive>(n: N) -> Option<int>impl FromStr for intimpl FromStrRadix for intfn from_str_radix(src: &str, radix: uint) -> Option<int>impl Num for intimpl Primitive for intimpl Zero for intimpl One for intimpl Bounded for intimpl Zeroable for intimpl Add<int, int> for intimpl Sub<int, int> for intimpl Mul<int, int> for intimpl Div<int, int> for intimpl Rem<int, int> for intimpl Neg<int> for intimpl Not<int> for intimpl BitAnd<int, int> for intimpl BitOr<int, int> for intimpl BitXor<int, int> for intimpl Shl<uint, int> for intimpl Shr<uint, int> for intimpl PartialEq<int> for intimpl Eq for intfn assert_receiver_is_total_eq(&self)impl PartialOrd<int> for intfn partial_cmp(&self, other: &int) -> Option<Ordering>fn lt(&self, other: &int) -> boolfn le(&self, other: &int) -> boolfn ge(&self, other: &int) -> boolfn gt(&self, other: &int) -> boolfn lt(&self, &int) -> boolfn le(&self, &int) -> boolfn gt(&self, &int) -> boolfn ge(&self, &int) -> boolimpl Ord for intimpl Clone for intimpl Default for intimpl Step for intimpl<S: Writer> Hash<S> for intfn hash(&self, state: &mut S)impl Show for intimpl Binary for intimpl Octal for intimpl LowerHex for intimpl UpperHex for intimpl SampleRange for intfn construct_range(low: int, high: int) -> Range<int>fn sample_range<R: Rng>(r: &Range<int>, rng: &mut R) -> intimpl Rand for int
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).