Primitive Type intUnstable
Operations and constants for architecture-sized signed integers (int type)
Operations and constants for architecture-sized signed integers (int type)
impl Num for intimpl Zero for intimpl One for intimpl Signed for intfn abs(&self) -> intfn abs_sub(&self, other: &int) -> intfn signum(&self) -> intfn is_positive(&self) -> boolfn is_negative(&self) -> boolimpl Bounded for intimpl Primitive for intimpl Int for intfn count_ones(self) -> intfn leading_zeros(self) -> intfn trailing_zeros(self) -> intfn rotate_left(self, n: uint) -> intfn rotate_right(self, n: uint) -> intfn swap_bytes(self) -> intfn count_zeros(self) -> Selffn from_be(x: Self) -> Selffn from_le(x: Self) -> Selffn to_be(self) -> Selffn to_le(self) -> Selfimpl 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>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>impl NumCast for intfn from<N: ToPrimitive>(n: N) -> Option<int>impl CheckedAdd for intfn checked_add(&self, v: &int) -> Option<int>impl CheckedSub for intfn checked_sub(&self, v: &int) -> Option<int>impl CheckedMul for intfn checked_mul(&self, v: &int) -> Option<int>impl CheckedDiv for intfn checked_div(&self, v: &int) -> Option<int>impl 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<int, int> for intimpl Shr<int, int> for intimpl PartialEq for intimpl Eq for intimpl PartialOrd for intfn lt(&self, other: &int) -> boolfn le(&self, other: &int) -> boolfn ge(&self, other: &int) -> boolfn gt(&self, other: &int) -> boolimpl Ord for intimpl Clone for intimpl Default for intimpl Show for intimpl Signed for intimpl Binary for intimpl Octal for intimpl LowerHex for intimpl UpperHex 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 (or str), enum,
trait, typedef (or
tdef).