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 }

let eq : Eq Int

Eq a defines equality (==) on a

let ord : Ord Int

Ord a defines an ordering on a

let num : Num Int

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

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 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 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_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_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