ranged_int/builtin/uint128

Types

pub opaque type Uint128

Functions

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