package patdiff

  1. Overview
  2. Docs
module RGB6 : sig ... end
module Gray24 : sig ... end
type t =
  1. | Black
  2. | Red
  3. | Green
  4. | Yellow
  5. | Blue
  6. | Magenta
  7. | Cyan
  8. | White
  9. | Default
  10. | Gray
  11. | Bright_black
  12. | Bright_red
  13. | Bright_green
  14. | Bright_yellow
  15. | Bright_blue
  16. | Bright_magenta
  17. | Bright_cyan
  18. | Bright_white
  19. | RGB6 of RGB6.t
  20. | Gray24 of Gray24.t
val t_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> t
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
include Core.Comparable.S with type t := t
include Base.Comparable.S with type t := t
val (>=) : t -> t -> bool
val (<=) : t -> t -> bool
val (=) : t -> t -> bool
val (>) : t -> t -> bool
val (<) : t -> t -> bool
val (<>) : t -> t -> bool
val equal : t -> t -> bool
val compare : t -> t -> int
val min : t -> t -> t
val max : t -> t -> t
val ascending : t -> t -> int
val descending : t -> t -> int
val between : t -> low:t -> high:t -> bool
val clamp_exn : t -> min:t -> max:t -> t
val clamp : t -> min:t -> max:t -> t Base__.Or_error.t
type comparator_witness
val comparator : (t, comparator_witness) Base__.Comparator.comparator
val validate_lbound : min:t Base__.Maybe_bound.t -> t Base__.Validate.check
val validate_ubound : max:t Base__.Maybe_bound.t -> t Base__.Validate.check
val validate_bound : min:t Base__.Maybe_bound.t -> max:t Base__.Maybe_bound.t -> t Base__.Validate.check
module Replace_polymorphic_compare : sig ... end
val rgb6_exn : (int * int * int) -> t

rgb6_exn r g b and gray24_exn level raise if the values are out of bound.

val gray24_exn : int -> t
OCaml

Innovation. Community. Security.