package pyre-ast

  1. Overview
  2. Docs

See TaglessFinal.Constant.

type t = private
  1. | None
  2. | False
  3. | True
  4. | Ellipsis
  5. | Integer of int
  6. | BigInteger of string
  7. | Float of float
  8. | Complex of float
  9. | String of string
  10. | ByteString of string
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 Ppx_compare_lib.Comparable.S with type t := t
val compare : t -> t -> int
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
val make_none_of_t : unit -> t
val make_false_of_t : unit -> t
val make_true_of_t : unit -> t
val make_ellipsis_of_t : unit -> t
val make_integer_of_t : int -> t
val make_big_integer_of_t : string -> t
val make_float_of_t : float -> t
val make_complex_of_t : float -> t
val make_string_of_t : string -> t
val make_byte_string_of_t : string -> t
OCaml

Innovation. Community. Security.