> 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 u128

Module: `std`

The 128-bit unsigned integer type.

## Trait implementations

```rust
impl Add for u128
```

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

```rust
impl BitAnd for u128
```

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

```rust
impl BitOr for u128
```

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

```rust
impl BitXor for u128
```

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

```rust
impl Default for u128
```

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

```rust
impl Div for u128
```

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

```rust
impl Eq for u128
```

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

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

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

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

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

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

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

```rust
impl From<u64> for u128
```

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

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

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

```rust
impl Hash for u128
```

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

```rust
impl Mul for u128
```

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

```rust
impl Not for u128
```

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

```rust
impl Ord for u128
```

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

```rust
impl Rem for u128
```

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

```rust
impl Shl for u128
```

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

```rust
impl Shr for u128
```

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

```rust
impl Sub for u128
```

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

```rust
impl WrappingAdd for u128
```

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

```rust
impl WrappingMul for u128
```

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

```rust
impl WrappingSub for u128
```

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