ranged_int/builtin/int32

Types

pub opaque type Int32

Functions

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