Module Id.Uid
Every Id.t contains a unique id that is distinct from the Uid.t in any other Id.t.
val hash_fold_t : Hash.state -> t -> Hash.stateval hash : t -> Hash.hash_value
include Comparable.S with type t := t
include Base__.Comparable_intf.Validate with type t := t
val validate_bound : min:t Maybe_bound.t -> max:t Maybe_bound.t -> t Validate.checkval validate_ubound : max:t Maybe_bound.t -> t Validate.checkval validate_lbound : min:t Maybe_bound.t -> t Validate.check
include Comparator.S with type t := t
val comparator : (t, comparator_witness) Comparator.comparator
val clamp : t -> min:t -> max:t -> t Or_error.tval clamp_exn : t -> min:t -> max:t -> tclamp_exn t ~min ~maxreturnst', the closest value totsuch thatbetween t' ~low:min ~high:maxis true.Raises if
not (min <= max).
val descending : t -> t -> intval ascending : t -> t -> intascendingis identical tocompare.descending x y = ascending y x. These are intended to be mnemonic when used likeList.sort ~compare:ascendingandList.sort ~cmp:descending, since they cause the list to be sorted in ascending or descending order, respectively.