ranged_int/builtin/uint32

Types

pub opaque type Uint32

Constants

pub const max_limit: Int = 4_294_967_295
pub const min_limit: Int = 0

Functions

pub fn add(a: Uint32, b: BigInt) -> Result(Uint32, Overflow)
pub fn compare(a: Uint32, b: Uint32) -> Order
pub fn divide(a: Uint32, b: BigInt) -> Result(Uint32, Overflow)
pub fn divide_no_zero(
  a: Uint32,
  b: BigInt,
) -> Result(Result(Uint32, Overflow), Nil)
pub fn eject(op: Result(Uint32, Overflow)) -> BigInt
pub fn from_bigint(value: BigInt) -> Result(Uint32, Overflow)
pub fn from_int(value: Int) -> Result(Uint32, Overflow)
pub fn modulo(a: Uint32, b: BigInt) -> Result(Uint32, Overflow)
pub fn modulo_no_zero(
  a: Uint32,
  b: BigInt,
) -> Result(Result(Uint32, Overflow), Nil)
pub fn multiply(a: Uint32, b: BigInt) -> Result(Uint32, Overflow)
pub fn overflow(op: Result(Uint32, Overflow)) -> Uint32
pub fn power(a: Uint32, b: Uint) -> Result(Uint32, Overflow)
pub fn remainder(
  a: Uint32,
  b: BigInt,
) -> Result(Uint32, Overflow)
pub fn remainder_no_zero(
  a: Uint32,
  b: BigInt,
) -> Result(Result(Uint32, Overflow), Nil)
pub fn subtract(a: Uint32, b: BigInt) -> Result(Uint32, Overflow)
pub fn to_bigint(uint: Uint32) -> BigInt
pub fn to_int(uint: Uint32) -> Int
Search Document