> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Primitive type u32

Module: `std`

The 32-bit unsigned integer type.

## Implementations

```rust
impl u32
```

```rust
pub fn max_value() -> Self
```

Returns the maximum value representable by `u32`: 4294967295.

```rust
pub fn min_value() -> Self
```

Returns the minimum value representable by `u32`: 0.

```rust
pub fn bits() -> Self
```

Returns the number of bits in `u32`: 32.

## Trait implementations

```rust
impl Add for u32
```

```rust
pub fn add(self, other: Self) -> Self
```

```rust
impl AsPrimitive<Field> for u32
```

```rust
pub fn as_(self) -> Field
```

```rust
impl AsPrimitive<bool> for u32
```

```rust
pub fn as_(self) -> bool
```

```rust
impl AsPrimitive<i16> for u32
```

```rust
pub fn as_(self) -> i16
```

```rust
impl AsPrimitive<i32> for u32
```

```rust
pub fn as_(self) -> i32
```

```rust
impl AsPrimitive<i64> for u32
```

```rust
pub fn as_(self) -> i64
```

```rust
impl AsPrimitive<i8> for u32
```

```rust
pub fn as_(self) -> i8
```

```rust
impl AsPrimitive<u128> for u32
```

```rust
pub fn as_(self) -> u128
```

```rust
impl AsPrimitive<u16> for u32
```

```rust
pub fn as_(self) -> u16
```

```rust
impl AsPrimitive<u32> for u32
```

```rust
pub fn as_(self) -> Self
```

```rust
impl AsPrimitive<u64> for u32
```

```rust
pub fn as_(self) -> u64
```

```rust
impl AsPrimitive<u8> for u32
```

```rust
pub fn as_(self) -> u8
```

```rust
impl BitAnd for u32
```

```rust
pub fn bitand(self, other: Self) -> Self
```

```rust
impl BitOr for u32
```

```rust
pub fn bitor(self, other: Self) -> Self
```

```rust
impl BitXor for u32
```

```rust
pub fn bitxor(self, other: Self) -> Self
```

```rust
impl Default for u32
```

```rust
pub fn default() -> Self
```

```rust
impl Div for u32
```

```rust
pub fn div(self, other: Self) -> Self
```

```rust
impl Eq for u32
```

```rust
pub fn eq(self, other: Self) -> bool
```

```rust
impl From<bool> for u32
```

```rust
pub fn from(value: bool) -> Self
```

```rust
impl From<u16> for u32
```

```rust
pub fn from(value: u16) -> Self
```

```rust
impl From<u8> for u32
```

```rust
pub fn from(value: u8) -> Self
```

```rust
impl Hash for u32
```

```rust
pub fn hash<H>(self, state: &mut H)
where
    H: Hasher
```

```rust
impl Mul for u32
```

```rust
pub fn mul(self, other: Self) -> Self
```

```rust
impl Not for u32
```

```rust
pub fn not(self) -> Self
```

```rust
impl Ord for u32
```

```rust
pub fn cmp(self, other: Self) -> Ordering
```

```rust
impl Rem for u32
```

```rust
pub fn rem(self, other: Self) -> Self
```

```rust
impl Shl for u32
```

```rust
pub fn shl(self, other: Self) -> Self
```

```rust
impl Shr for u32
```

```rust
pub fn shr(self, other: Self) -> Self
```

```rust
impl Sub for u32
```

```rust
pub fn sub(self, other: Self) -> Self
```

```rust
impl WrappingAdd for u32
```

```rust
pub fn wrapping_add(self, y: Self) -> Self
```

```rust
impl WrappingMul for u32
```

```rust
pub fn wrapping_mul(self, y: Self) -> Self
```

```rust
impl WrappingSub for u32
```

```rust
pub fn wrapping_sub(self, y: Self) -> Self
```
