ranged_int/builtin/int128

Types

pub opaque type Int128

Functions

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