Parameter Make.1-Node_id
val zero : t
zero
returns node ID 0
val one : t
one
returns node ID 1
val random : unit -> t
random
returns a random node ID.
val compare : t -> t -> int
compare a b
compares node IDsa
&b
.- returns
0
if a = b-1
ifa
<b
1
ifb
<a
val to_uint64 : t -> Stdint.Uint64.t
to_uint64 t
returns a uint64 representation of node IDt
val to_string : t -> string
to_string t
returns a string representation of node IDt
val pp : Stdlib.Format.formatter -> t -> unit
pp fmt t
pretty-prints node IDt