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(x: Self) -> Selffn from_le(x: Self) -> Selffn to_be(self) -> Selffn to_le(self) -> Selffn saturating_add(self, other: Self) -> Selffn saturating_sub(self, other: Self) -> Selfimpl 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>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 Num for intimpl Primitive for intimpl Zero for intimpl One for intimpl Bounded 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 for intimpl Eq for intimpl PartialOrd 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) -> 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, enum,
trait, typedef (or
tdef).