Bounded.Int31
Allows to build interval of built-in OCaml int integers. The encoding used is Data_encoding
.int31 regardless of the actual bounds.
module B : BOUNDS with type ocaml_type := int
include BOUNDS with type ocaml_type := int
include Mavryk_stdlib.Compare.S with type t := t
val encoding : t Data_encoding.t
A (partial) encoding of the datatype. If the encoded value is out of bounds, an exception may be raised. See Data_encoding
.conv_with_guard.
val pp : Stdlib.Format.formatter -> t -> unit
A pretty-printer for values of type t
.
val to_value : t -> int
to_value t
is a projection to the OCaml representation of the bounded value t
.