ranged_int/builtin/uint16

Types

pub opaque type Uint16

Functions

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