package tezos-protocol-environment

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Produce a module _ : S of bounded integers.

If the given interval is empty, S.t is the empty type, and of_int32 returns Error for all inputs.

Encoding

(Make B).encoding is based on the underlying int32 encoding. This allow future compatiblity with larger bounds, at the price of addding 1-3 redundant bytes to each message.

Parameters

module _ : BOUNDS

Signature

type t
include BOUNDS
val min_int : int32
val max_int : int32
include Tezos_base.TzPervasives.Compare.S with type t := t
val (=) : t -> t -> bool
val (<>) : t -> t -> bool
val (<) : t -> t -> bool
val (<=) : t -> t -> bool
val (>=) : t -> t -> bool
val (>) : t -> t -> bool
val compare : t -> t -> int
val equal : t -> t -> bool
val max : t -> t -> t
val min : t -> t -> t
val encoding : t Data_encoding.t
val to_int32 : t -> int32
val of_int32 : int32 -> t option
OCaml

Innovation. Community. Security.