irmin-pack
Irmin_pack.Version
Management of disk-format versions.
irmin-pack.layered
irmin-pack.mem
type t = [
| `V1
| `V2
]
The type for version numbers.
val pp : t Fmt.t
pp is the pretty-format for version numbers.
pp
val to_bin : t -> string
to_bin t is the 8-bytes binary representation of t.
to_bin t
t
val of_bin : string -> t option
of_bin s is Some t is to_bin t is s and None otherwise.
of_bin s
Some t
s
None
val invalid_arg : string -> 'a
invalid_arg str raises Invalid_argument.
invalid_arg str
Invalid_argument
exception Invalid of {
expected : t;
found : t;
}
module type S = sig ... end
module V1 : S
module V2 : S