package bin_prot

  1. Overview
  2. Docs

Nat0: natural numbers (including zero)

type t = private int
val of_int : int -> t

of_int n converts integer n to a natural number.

  • raises Failure

    if n is negative.

val unsafe_of_int : int -> t
OCaml

Innovation. Community. Security.