package irmin-pack

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

Management of disk-format versions.

type t = [
  1. | `V1
  2. | `V2
]

The type for version numbers.

val pp : t Fmt.t

pp is the pretty-format for version numbers.

val to_bin : t -> string

to_bin t is the 8-bytes binary representation of t.

val of_bin : string -> t option

of_bin s is Some t is to_bin t is s and None otherwise.

val invalid_arg : string -> 'a

invalid_arg str raises Invalid_argument.

exception Invalid of {
  1. expected : t;
  2. found : t;
}
module type S = sig ... end
module V1 : S
module V2 : S
OCaml

Innovation. Community. Security.