Primitive Type u32 [-]  [+]

Operations and constants for unsigned 32-bits integers (u32 type)

Trait Implementations

impl Int for u32

fn zero() -> u32

fn one() -> u32

fn min_value() -> u32

fn max_value() -> u32

fn count_ones(self) -> uint

fn leading_zeros(self) -> uint

fn trailing_zeros(self) -> uint

fn rotate_left(self, n: uint) -> u32

fn rotate_right(self, n: uint) -> u32

fn swap_bytes(self) -> u32

fn 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) -> uint

fn from_be(x: Self) -> Self

fn from_le(x: Self) -> Self

fn to_be(self) -> Self

fn to_le(self) -> Self

fn saturating_add(self, other: Self) -> Self

fn saturating_sub(self, other: Self) -> Self

fn pow(self, exp: uint) -> Self

impl UnsignedInt for u32

fn is_power_of_two(self) -> bool

fn next_power_of_two(self) -> Self

fn checked_next_power_of_two(self) -> Option<Self>

impl ToPrimitive for u32

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_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 u32

fn from_int(n: int) -> 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: uint) -> 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>

impl NumCast for u32

fn from<N: ToPrimitive>(n: N) -> Option<u32>

impl FromStr for u32

fn from_str(src: &str) -> Option<u32>

impl FromStrRadix for u32

fn from_str_radix(src: &str, radix: uint) -> Option<u32>

impl Num for u32

impl Unsigned for u32

impl Primitive for u32

impl Zero for u32

fn zero() -> u32

fn is_zero(&self) -> bool

impl One for u32

fn one() -> u32

impl Bounded for u32

fn min_value() -> u32

fn max_value() -> u32

impl Zeroable for u32

impl Add<u32, u32> for u32

fn add(self, other: u32) -> u32

impl Sub<u32, u32> for u32

fn sub(self, other: u32) -> u32

impl Mul<u32, u32> for u32

fn mul(self, other: u32) -> u32

impl Div<u32, u32> for u32

fn div(self, other: u32) -> u32

impl Rem<u32, u32> for u32

fn rem(self, other: u32) -> u32

impl Neg<u32> for u32

fn neg(self) -> u32

impl Not<u32> for u32

fn not(self) -> u32

impl BitAnd<u32, u32> for u32

fn bitand(self, rhs: u32) -> u32

impl BitOr<u32, u32> for u32

fn bitor(self, rhs: u32) -> u32

impl BitXor<u32, u32> for u32

fn bitxor(self, other: u32) -> u32

impl Shl<uint, u32> for u32

fn shl(self, other: uint) -> u32

impl Shr<uint, u32> for u32

fn shr(self, other: uint) -> u32

impl PartialEq for u32

fn eq(&self, other: &u32) -> bool

fn ne(&self, other: &u32) -> bool

impl Eq for u32

impl PartialOrd for u32

fn partial_cmp(&self, other: &u32) -> Option<Ordering>

fn lt(&self, other: &u32) -> bool

fn le(&self, other: &u32) -> bool

fn ge(&self, other: &u32) -> bool

fn gt(&self, other: &u32) -> bool

impl Ord for u32

fn cmp(&self, other: &u32) -> Ordering

impl Clone for u32

fn clone(&self) -> u32

Return a deep copy of the value.

fn clone_from(&mut self, source: &Self)

impl Default for u32

fn default() -> u32

impl Step for u32

fn step(&mut self)

fn step_back(&mut self)

fn steps_between(a: &u32, b: &u32) -> Option<uint>

impl<S: Writer> Hash<S> for u32

fn hash(&self, state: &mut S)

impl Show for u32

fn fmt(&self, f: &mut Formatter) -> Result

impl Binary for u32

fn fmt(&self, f: &mut Formatter) -> Result

impl Octal for u32

fn fmt(&self, f: &mut Formatter) -> Result

impl LowerHex for u32

fn fmt(&self, f: &mut Formatter) -> Result

impl UpperHex for u32

fn fmt(&self, f: &mut Formatter) -> Result