Bounded.Int32
Allows to build interval of int32 integers. The encoding used is Data_encoding.int32
regardless of the actual bounds.
module B : BOUNDS with type ocaml_type := int32
include BOUNDS with type ocaml_type := int32
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 : Format.formatter -> t -> unit
A pretty-printer for values of type t
.
val to_value : t -> int32
to_value t
is a projection to the OCaml representation of the bounded value t
.