package int_repr

  1. Overview
  2. Docs
type t = uint16
include T with type t := t
include Ppx_compare_lib.Comparable.S with type t := t
include Ppx_compare_lib.Equal.S with type t := t
include Ppx_hash_lib.Hashable.S with type t := t
include Ppx_quickcheck_runtime.Quickcheckable.S with type t := t
val quickcheck_generator : t Base_quickcheck.Generator.t
val quickcheck_observer : t Base_quickcheck.Observer.t
val quickcheck_shrinker : t Base_quickcheck.Shrinker.t
include Sexplib0.Sexpable.S with type t := t
val t_of_sexp : Sexplib0.Sexp.t -> t
val sexp_of_t : t -> Sexplib0.Sexp.t
include Typerep_lib.Typerepable.S with type t := t
val typename_of_t : t Typerep_lib.Typename.t
val signed : bool
val num_bits : int
val num_bytes : int
val zero : t
val min_value : t
val max_value : t
include Ppx_hash_lib.Hashable.S with type t := t
val hash_fold_t : Base.Hash.state -> t -> Base.Hash.state
val hash : t -> Base.Hash.hash_value
include Base.Comparisons.S with type t := t
include Base.Comparisons.Infix 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

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.

val min : t -> t -> t
val max : t -> t -> t
module O : sig ... end
val of_base_int_trunc : Base.Int.t -> t
val of_base_int_exn : Base.Int.t -> t
val to_base_int : t -> Base.Int.t
val of_uint8 : uint8 -> t
val of_uint32_trunc : uint32 -> t
val of_uint32_exn : uint32 -> t
val of_uint63_trunc : uint63 -> t
val of_uint63_exn : uint63 -> t
val of_uint64_trunc : uint64 -> t
val of_uint64_exn : uint64 -> t
val of_int16_wrap : int16 -> t
val of_int16_exn : int16 -> t
OCaml

Innovation. Community. Security.