Bindoj_runtime.Expr
This module provides expression type t
and functions for interconversion between t
and OCaml type.
type t =
| Unit
| Bool of bool
| Int of int
| Int53p of Kxclib.int53p
| Float of float
| String of string
| Uchar of Stdlib.Uchar.t
| Byte of char
| Bytes of Kxclib.Bytes.t
| Some of t
| None
| Tuple of t list
| List of t list
| Map of (string * t) list
| StringEnum of string
| Refl : 'a Refl.t * 'a -> t
val of_unit : unit -> t
val to_unit : t -> unit option
val of_bool : bool -> t
val to_bool : t -> bool option
val of_int : int -> t
val to_int : t -> int option
val of_int53p : Kxclib.int53p -> t
val to_int53p : t -> Kxclib.int53p option
val of_float : float -> t
val to_float : t -> float option
val of_string : string -> t
val to_string : t -> string option
val of_uchar : Stdlib.Uchar.t -> t
val to_uchar : t -> Stdlib.Uchar.t option
val of_byte : char -> t
val to_byte : t -> char option
val of_bytes : Kxclib.Bytes.t -> t
val to_bytes : t -> Kxclib.Bytes.t option