package shell

  1. Overview
  2. Docs

Module Unix_extended.Inet_port

Simple int wrapper to be explicit about ports.

type t
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val of_int : int -> t option
val of_int_exn : int -> t
val of_string : string -> t option
val of_string_exn : string -> t
val to_int : t -> int
val to_string : t -> string
val arg_type : t Core.Command.Arg_type.t
include Core.Comparable.S_plain 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 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
module Map : sig ... end
module Set : sig ... end
module Stable : sig ... end
OCaml

Innovation. Community. Security.