std.int

The signed 64-bit integer type.

Values

let additive : { semigroup : Semigroup Int, monoid : Monoid Int, group : Group Int }

let multiplicative : { semigroup : Semigroup Int, monoid : Monoid Int }

#[implicit]
let eq : Eq Int

Eq a defines equality (==) on a

#[implicit]
let ord : Ord Int

Ord a defines an ordering on a

#[implicit]
let num : Num Int

The basic operation on numbers. Defined for both the primitive type Int and Float

#[implicit]
let show : Show Int

Show a represents a conversion function from a to a readable string.

let min_value : Int

let max_value : Int

let from_str_radix : String -> Int -> Result () Int

let shl : Int -> Int -> Int

let arithmetic_shr : Int -> Int -> Int

let logical_shr : Int -> Int -> Int

let bitxor : Int -> Int -> Int

let bitand : Int -> Int -> Int

let bitor : Int -> Int -> Int

let count_ones : Int -> Int

let count_zeros : Int -> Int

let leading_zeros : Int -> Int

let trailing_zeros : Int -> Int

let rotate_left : Int -> Int -> Int

let rotate_right : Int -> Int -> Int

let swap_bytes : Int -> Int

let from_be : Int -> Int

let from_le : Int -> Int

let to_be : Int -> Int

let to_le : Int -> Int

let pow : Int -> Int -> Int

let abs : Int -> Int

let rem : Int -> Int -> Int

let rem_euclid : Int -> Int -> Int

let checked_rem : Int -> Int -> Option Int

let checked_rem_euclid : Int -> Int -> Option Int

let saturating_add : Int -> Int -> Int

let saturating_sub : Int -> Int -> Int

let saturating_mul : Int -> Int -> Int

let wrapping_add : Int -> Int -> Int

let wrapping_sub : Int -> Int -> Int

let wrapping_mul : Int -> Int -> Int

let wrapping_div : Int -> Int -> Int

let wrapping_abs : Int -> Int

let wrapping_rem : Int -> Int -> Int

let wrapping_rem_euclid : Int -> Int -> Int

let wrapping_negate : Int -> Int

let overflowing_add : Int -> Int -> (Int, Bool)

let overflowing_sub : Int -> Int -> (Int, Bool)

let overflowing_mul : Int -> Int -> (Int, Bool)

let overflowing_div : Int -> Int -> (Int, Bool)

let overflowing_abs : Int -> (Int, Bool)

let overflowing_rem : Int -> Int -> (Int, Bool)

let overflowing_rem_euclid : Int -> Int -> (Int, Bool)

let overflowing_negate : Int -> (Int, Bool)

let signum : Int -> Int

let is_positive : Int -> Bool

let is_negative : Int -> Bool

let from_byte : Byte -> Int

let from_float : Float -> Int

let parse : String -> Result () Int