Primitive Type i32
[-] [+]
Operations and constants for signed 32-bits integers (i32
type)
Operations and constants for signed 32-bits integers (i32
type)
impl Int for i32
fn zero() -> i32
fn one() -> i32
fn min_value() -> i32
fn max_value() -> i32
fn count_ones(self) -> usize
fn leading_zeros(self) -> usize
fn trailing_zeros(self) -> usize
fn rotate_left(self, n: usize) -> i32
fn rotate_right(self, n: usize) -> i32
fn swap_bytes(self) -> i32
fn checked_add(self, other: i32) -> Option<i32>
fn checked_sub(self, other: i32) -> Option<i32>
fn checked_mul(self, other: i32) -> Option<i32>
fn checked_div(self, v: i32) -> Option<i32>
fn count_zeros(self) -> usize
fn from_be(i32) -> i32
fn from_le(i32) -> i32
fn to_be(self) -> i32
fn to_le(self) -> i32
fn saturating_add(self, i32) -> i32
fn saturating_sub(self, i32) -> i32
fn pow(self, usize) -> i32
impl SignedInt for i32
fn abs(self) -> i32
fn signum(self) -> i32
fn is_positive(self) -> bool
fn is_negative(self) -> bool
impl ToPrimitive for i32
fn to_int(&self) -> Option<isize>
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<usize>
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<isize>
fn to_i8(&self) -> Option<i8>
fn to_i16(&self) -> Option<i16>
fn to_i32(&self) -> Option<i32>
fn to_uint(&self) -> Option<usize>
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 i32
fn from_int(n: isize) -> Option<i32>
fn from_i8(n: i8) -> Option<i32>
fn from_i16(n: i16) -> Option<i32>
fn from_i32(n: i32) -> Option<i32>
fn from_i64(n: i64) -> Option<i32>
fn from_uint(n: usize) -> Option<i32>
fn from_u8(n: u8) -> Option<i32>
fn from_u16(n: u16) -> Option<i32>
fn from_u32(n: u32) -> Option<i32>
fn from_u64(n: u64) -> Option<i32>
fn from_f32(n: f32) -> Option<i32>
fn from_f64(n: f64) -> Option<i32>
fn from_int(isize) -> Option<i32>
fn from_i8(i8) -> Option<i32>
fn from_i16(i16) -> Option<i32>
fn from_i32(i32) -> Option<i32>
fn from_uint(usize) -> Option<i32>
fn from_u8(u8) -> Option<i32>
fn from_u16(u16) -> Option<i32>
fn from_u32(u32) -> Option<i32>
fn from_f32(f32) -> Option<i32>
fn from_f64(f64) -> Option<i32>
impl NumCast for i32
fn from<N>(n: N) -> Option<i32> where N: ToPrimitive
impl FromStr for i32
type Err = ParseIntError
fn from_str(src: &str) -> Result<i32, ParseIntError>
impl FromStrRadix for i32
type Err = ParseIntError
fn from_str_radix(src: &str, radix: u32) -> Result<i32, ParseIntError>
impl Zeroable for i32
impl Add<i32> for i32
impl<'a> Add<i32> for &'a i32
impl<'a> Add<&'a i32> for i32
impl<'a, 'b> Add<&'a i32> for &'b i32
impl Sub<i32> for i32
impl<'a> Sub<i32> for &'a i32
impl<'a> Sub<&'a i32> for i32
impl<'a, 'b> Sub<&'a i32> for &'b i32
impl Mul<i32> for i32
impl<'a> Mul<i32> for &'a i32
impl<'a> Mul<&'a i32> for i32
impl<'a, 'b> Mul<&'a i32> for &'b i32
impl Div<i32> for i32
impl<'a> Div<i32> for &'a i32
impl<'a> Div<&'a i32> for i32
impl<'a, 'b> Div<&'a i32> for &'b i32
impl Rem<i32> for i32
impl<'a> Rem<i32> for &'a i32
impl<'a> Rem<&'a i32> for i32
impl<'a, 'b> Rem<&'a i32> for &'b i32
impl Neg for i32
impl<'a> Neg for &'a i32
impl Not for i32
impl<'a> Not for &'a i32
impl BitAnd<i32> for i32
impl<'a> BitAnd<i32> for &'a i32
type Output = <i32 as BitAnd<i32>>::Output
fn bitand(self, other: i32) -> <i32 as BitAnd<i32>>::Output
impl<'a> BitAnd<&'a i32> for i32
type Output = <i32 as BitAnd<i32>>::Output
fn bitand(self, other: &'a i32) -> <i32 as BitAnd<i32>>::Output
impl<'a, 'b> BitAnd<&'a i32> for &'b i32
type Output = <i32 as BitAnd<i32>>::Output
fn bitand(self, other: &'a i32) -> <i32 as BitAnd<i32>>::Output
impl BitOr<i32> for i32
impl<'a> BitOr<i32> for &'a i32
impl<'a> BitOr<&'a i32> for i32
type Output = <i32 as BitOr<i32>>::Output
fn bitor(self, other: &'a i32) -> <i32 as BitOr<i32>>::Output
impl<'a, 'b> BitOr<&'a i32> for &'b i32
type Output = <i32 as BitOr<i32>>::Output
fn bitor(self, other: &'a i32) -> <i32 as BitOr<i32>>::Output
impl BitXor<i32> for i32
impl<'a> BitXor<i32> for &'a i32
type Output = <i32 as BitXor<i32>>::Output
fn bitxor(self, other: i32) -> <i32 as BitXor<i32>>::Output
impl<'a> BitXor<&'a i32> for i32
type Output = <i32 as BitXor<i32>>::Output
fn bitxor(self, other: &'a i32) -> <i32 as BitXor<i32>>::Output
impl<'a, 'b> BitXor<&'a i32> for &'b i32
type Output = <i32 as BitXor<i32>>::Output
fn bitxor(self, other: &'a i32) -> <i32 as BitXor<i32>>::Output
impl Shl<u8> for i32
impl<'a> Shl<u8> for &'a i32
impl<'a> Shl<&'a u8> for i32
impl<'a, 'b> Shl<&'a u8> for &'b i32
impl Shl<u16> for i32
impl<'a> Shl<u16> for &'a i32
impl<'a> Shl<&'a u16> for i32
impl<'a, 'b> Shl<&'a u16> for &'b i32
impl Shl<u32> for i32
impl<'a> Shl<u32> for &'a i32
impl<'a> Shl<&'a u32> for i32
impl<'a, 'b> Shl<&'a u32> for &'b i32
impl Shl<u64> for i32
impl<'a> Shl<u64> for &'a i32
impl<'a> Shl<&'a u64> for i32
impl<'a, 'b> Shl<&'a u64> for &'b i32
impl Shl<usize> for i32
impl<'a> Shl<usize> for &'a i32
impl<'a> Shl<&'a usize> for i32
type Output = <i32 as Shl<usize>>::Output
fn shl(self, other: &'a usize) -> <i32 as Shl<usize>>::Output
impl<'a, 'b> Shl<&'a usize> for &'b i32
type Output = <i32 as Shl<usize>>::Output
fn shl(self, other: &'a usize) -> <i32 as Shl<usize>>::Output
impl Shl<i8> for i32
impl<'a> Shl<i8> for &'a i32
impl<'a> Shl<&'a i8> for i32
impl<'a, 'b> Shl<&'a i8> for &'b i32
impl Shl<i16> for i32
impl<'a> Shl<i16> for &'a i32
impl<'a> Shl<&'a i16> for i32
impl<'a, 'b> Shl<&'a i16> for &'b i32
impl Shl<i32> for i32
impl<'a> Shl<i32> for &'a i32
impl<'a> Shl<&'a i32> for i32
impl<'a, 'b> Shl<&'a i32> for &'b i32
impl Shl<i64> for i32
impl<'a> Shl<i64> for &'a i32
impl<'a> Shl<&'a i64> for i32
impl<'a, 'b> Shl<&'a i64> for &'b i32
impl Shl<isize> for i32
impl<'a> Shl<isize> for &'a i32
impl<'a> Shl<&'a isize> for i32
type Output = <i32 as Shl<isize>>::Output
fn shl(self, other: &'a isize) -> <i32 as Shl<isize>>::Output
impl<'a, 'b> Shl<&'a isize> for &'b i32
type Output = <i32 as Shl<isize>>::Output
fn shl(self, other: &'a isize) -> <i32 as Shl<isize>>::Output
impl Shr<u8> for i32
impl<'a> Shr<u8> for &'a i32
impl<'a> Shr<&'a u8> for i32
impl<'a, 'b> Shr<&'a u8> for &'b i32
impl Shr<u16> for i32
impl<'a> Shr<u16> for &'a i32
impl<'a> Shr<&'a u16> for i32
impl<'a, 'b> Shr<&'a u16> for &'b i32
impl Shr<u32> for i32
impl<'a> Shr<u32> for &'a i32
impl<'a> Shr<&'a u32> for i32
impl<'a, 'b> Shr<&'a u32> for &'b i32
impl Shr<u64> for i32
impl<'a> Shr<u64> for &'a i32
impl<'a> Shr<&'a u64> for i32
impl<'a, 'b> Shr<&'a u64> for &'b i32
impl Shr<usize> for i32
impl<'a> Shr<usize> for &'a i32
impl<'a> Shr<&'a usize> for i32
type Output = <i32 as Shr<usize>>::Output
fn shr(self, other: &'a usize) -> <i32 as Shr<usize>>::Output
impl<'a, 'b> Shr<&'a usize> for &'b i32
type Output = <i32 as Shr<usize>>::Output
fn shr(self, other: &'a usize) -> <i32 as Shr<usize>>::Output
impl Shr<i8> for i32
impl<'a> Shr<i8> for &'a i32
impl<'a> Shr<&'a i8> for i32
impl<'a, 'b> Shr<&'a i8> for &'b i32
impl Shr<i16> for i32
impl<'a> Shr<i16> for &'a i32
impl<'a> Shr<&'a i16> for i32
impl<'a, 'b> Shr<&'a i16> for &'b i32
impl Shr<i32> for i32
impl<'a> Shr<i32> for &'a i32
impl<'a> Shr<&'a i32> for i32
impl<'a, 'b> Shr<&'a i32> for &'b i32
impl Shr<i64> for i32
impl<'a> Shr<i64> for &'a i32
impl<'a> Shr<&'a i64> for i32
impl<'a, 'b> Shr<&'a i64> for &'b i32
impl Shr<isize> for i32
impl<'a> Shr<isize> for &'a i32
impl<'a> Shr<&'a isize> for i32
type Output = <i32 as Shr<isize>>::Output
fn shr(self, other: &'a isize) -> <i32 as Shr<isize>>::Output
impl<'a, 'b> Shr<&'a isize> for &'b i32
type Output = <i32 as Shr<isize>>::Output
fn shr(self, other: &'a isize) -> <i32 as Shr<isize>>::Output
impl PartialEq<i32> for i32
impl Eq for i32
fn assert_receiver_is_total_eq(&self)
impl PartialOrd<i32> for i32
fn partial_cmp(&self, other: &i32) -> Option<Ordering>
fn lt(&self, other: &i32) -> bool
fn le(&self, other: &i32) -> bool
fn ge(&self, other: &i32) -> bool
fn gt(&self, other: &i32) -> bool
fn lt(&self, &i32) -> bool
fn le(&self, &i32) -> bool
fn gt(&self, &i32) -> bool
fn ge(&self, &i32) -> bool
impl Ord for i32
impl Clone for i32
impl Default for i32
impl Hash for i32
fn hash<H>(&self, state: &mut H) where H: Hasher
fn hash_slice<H>(data: &[i32], state: &mut H) where H: Hasher
fn hash_slice<H>(&[i32], &mut H) where H: Hasher, i32: Sized
impl Display for i32
impl Binary for i32
impl Octal for i32
impl LowerHex for i32
impl UpperHex for i32
impl Debug for i32
impl SampleRange for i32
fn construct_range(low: i32, high: i32) -> Range<i32>
fn sample_range<R>(r: &Range<i32>, rng: &mut R) -> i32 where R: Rng
impl Rand for i32
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
).