Module Irmin_pack.VersionSource

Management of disk-format versions.

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

The type for version numbers.

Sourceval pp : t Fmt.t

pp is the pretty-format for version numbers.

Sourceval to_bin : t -> string

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

Sourceval of_bin : string -> t option

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

Sourceval invalid_arg : string -> 'a

invalid_arg str raises Invalid_argument.

Sourceexception Invalid of {
  1. expected : t;
  2. found : t;
}
Sourcemodule type S = sig ... end
Sourcemodule V1 : S
Sourcemodule V2 : S