package core
Module Identifiable.Make_using_comparator_and_derive_hash_fold_tSource
Parameters
module M : sig ... endSignature
include Bin_prot.Binable.S with type t := M.t
include Bin_prot.Binable.S_only_functions with type t := M.t
val bin_size_t : M.t Bin_prot.Size.sizerval bin_write_t : M.t Bin_prot.Write.writerval bin_read_t : M.t Bin_prot.Read.readerval __bin_read_t__ : (int -> M.t) Bin_prot.Read.readerThis function only needs implementation if t exposed to be a polymorphic variant. Despite what the type reads, this does *not* produce a function after reading; instead it takes the constructor tag (int) before reading and reads the rest of the variant t afterwards.
val bin_shape_t : Bin_prot.Shape.tval bin_writer_t : M.t Bin_prot.Type_class.writerval bin_reader_t : M.t Bin_prot.Type_class.readerval bin_t : M.t Bin_prot.Type_class.tinclude Ppx_hash_lib.Hashable.S with type t := M.t
include Sexplib0.Sexpable.S with type t := M.t
val t_of_sexp : Sexplib0.Sexp.t -> M.tinclude Ppx_compare_lib.Comparable.S with type t := M.t
include Ppx_hash_lib.Hashable.S with type t := M.t
val sexp_of_t : M.t -> Sexplib0.Sexp.tinclude Base.Stringable.S with type t := M.t
val of_string : string -> M.tval to_string : M.t -> stringinclude Base.Pretty_printer.S with type t := M.t
include Comparable.S_binable
with type t := M.t
with type comparator_witness := M.comparator_witness
include Base.Comparable.S
with type t := M.t
with type comparator_witness := M.comparator_witness
include Base.Comparisons.S with type t := M.t
compare t1 t2 returns 0 if t1 is equal to t2, a negative integer if t1 is less than t2, and a positive integer if t1 is greater than t2.
ascending is identical to compare. descending x y = ascending y x. These are intended to be mnemonic when used like List.sort ~compare:ascending and List.sort ~cmp:descending, since they cause the list to be sorted in ascending or descending order, respectively.
clamp_exn t ~min ~max returns t', the closest value to t such that between t' ~low:min ~high:max is true.
Raises if not (min <= max).
include Base.Comparator.S
with type t := M.t
with type comparator_witness := M.comparator_witness
include Comparator.S
with type t := M.t
with type comparator_witness := M.comparator_witness
val comparator : (M.t, M.comparator_witness) Base.Comparator.comparatormodule Map :
Map.S_binable
with type Key.t = M.t
with type Key.comparator_witness = M.comparator_witnessmodule Set :
Set.S_binable
with type Elt.t = M.t
with type Elt.comparator_witness = M.comparator_witness