Module Astral_internal.Interval

type t = Stdlib.Int.t * Stdlib.Int.t
include Ppx_compare_lib.Comparable.S with type t := t
val compare : t Base__Ppx_compare_lib.compare
include Ppx_compare_lib.Equal.S with type t := t
val equal : t Base__Ppx_compare_lib.equal
include Datatype_sig.PRINTABLE with type t := t
include Datatype_sig.SHOW with type t := t
val show : t -> string

String representation of type t

val pp : Stdlib.Format.formatter -> t -> unit

Output to formatter

val print : ?prefix:string -> t -> unit

Output to stdout.

val show_option : t option -> string
val print_option : ?prefix:string -> t option -> unit
val dump : string -> t -> unit

Dump to file given by filename

Lists of printable values

val show_list : ?separator:string -> t list -> string
val pp_list : Stdlib.Format.formatter -> t list -> unit
val print_list : ?separator:string -> ?prefix:string -> t list -> unit
val plus : t -> t -> t

Component-wise plus.

val minus : t -> t -> t

Component-wise truncated minus.

val min : int -> t -> t

min x (a, b) returns (min x a, min x b).

val max : int -> t -> t

max x (a, b) returns (max x a, max x b).

val join : t -> t -> t
val meet : t -> t -> t
val meet_list : t list -> t
val enum : t -> int list