package swhid_core
-
swhid_core
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Module to work with the core identifier of a swhid. The core identifier of a swhid is made of its scheme version, its kind and its hash. They're documented here.
compare x y
returns 0
if x
is equal to y
, a negative integer if x
is less than y
, and a positive integer if x
is greater than y
.
val of_string : string -> (t, string) Stdlib.result
of_string s
is Ok v
if s
is a valid core identifier, otherwise it is Error e
.
val mk : Scheme_version.t -> Kind.t -> Hash.t -> t
mk scheme kind hash
is the core identifier made of the scheme version scheme
, the kind kind
and the hash hash
.
val pp : Stdlib.Format.formatter -> t -> unit
pp fmt v
prints v
on formatter fmt
.
val to_string : t -> string
to_string v
is the representation of v
as a string.
val get_scheme : t -> Scheme_version.t
get_scheme v
is the scheme version of v
.