package serde

  1. Overview
  2. Docs
type data
type 'err ser_error =
  1. | Unimplemented
  2. | Custom of 'err
module type Mapper = sig ... end
module type Intf = sig ... end
module Unimplemented : sig ... end
module Make (B : Intf) : sig ... end
val serialize_unit : unit -> (Serde__.Data.t, 'a) result
val serialize_char : char -> (Serde__.Data.t, 'a) result
val serialize_bool : bool -> (Serde__.Data.t, 'a) result
val serialize_int : Int.t -> (Serde__.Data.t, 'a) result
val serialize_float : float -> (Serde__.Data.t, 'a) result
val serialize_string : string -> (Serde__.Data.t, 'a) result
val serialize_tuple : size:int -> elements:Serde__.Data.t list -> (Serde__.Data.t, 'a) result
val serialize_unit_variant : typename:string -> variant_idx:int -> variant_name:string -> (Serde__.Data.t, 'a) result
val serialize_tuple_variant : typename:string -> variant_idx:int -> variant_name:string -> variant_size:int -> fields:Serde__.Data.t list -> (Serde__.Data.t, 'a) result
val serialize_record_variant : typename:string -> variant_idx:int -> variant_name:string -> variant_size:int -> fields:(string * Serde__.Data.t) list -> (Serde__.Data.t, 'a) result
val serialize_record : typename:string -> size:int -> fields:(string * Serde__.Data.t) list -> (Serde__.Data.t, 'a) result
val serialize : 'output 'error. (module Intf with type error = 'error and type output = 'output) -> data -> ('output, 'error ser_error) result
OCaml

Innovation. Community. Security.