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