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 different kinds of software artifacts a swhid can points to. 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 kind of object, otherwise it is Error e
. The valid kinds are "cnt"
, "dir"
, "rel"
, "rev"
and "snp"
.
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.