You can search for identifiers within the package.
in-package search v0.2.0
conex
Conex_resource.Digest
type alg = [
| `SHA256
]
The sum type of supported digest algorithms.
type t = alg * string
A digest is a pair of digest algorithm and value.
val pp : t Conex_utils.fmt
pp digest is a pretty printer for digest.
pp digest
digest
val compare : t -> t -> int
compare a b compares a and b, returns 0 if equal, -1 if smaller, 1 if bigger.
compare a b
a
b
val equal : t -> t -> bool
equal a b is true when a and b use the same algorithm type, and have the same value.
equal a b
true
val of_wire : Wire.s -> (t, err) result
of_wire w converts w to a digest or error.
of_wire w
w
val wire_raw : t -> Wire.s
wire_raw t is the wire representation of t.
wire_raw t
t
val of_string : string -> (t, err) result
of_string str is t or an error.
of_string str
val to_string : t -> string
to_string digest is the string representing the digest.
to_string digest
string