package serde

  1. Overview
  2. Docs
include module type of struct include Ser_base end
type ('value, 'state, 'output) t = 'value -> ('value, 'state, 'output) ctx -> ('output, error) Stdlib.result
and ('value, 'state, 'output) ctx = ('value, 'state, 'output) Ser_base.ctx =
  1. | Ctx of ('value, 'state, 'output) t * ('state, 'output) Ser_base.serializer * 'state
val serializer : ('value, 'state, 'output) t -> ('value, 'state, 'output) t
module type Serializer = Ser_base.Serializer
type ('state, 'output) serializer = (module Serializer with type output = 'output and type state = 'state)
val serialize : ('value, 'state, 'output) ctx -> (('value, 'state, 'output) ctx -> ('output, error) Stdlib.result) -> ('output, error) Stdlib.result
val serialize_sequence : ('value, 'state, 'output) ctx -> int -> (('value, 'state, 'output) Ser_base.ctx -> ('output, error) Stdlib.result) -> ('output, error) Stdlib.result
val serialize_record : ('value, 'state, 'output) ctx -> string -> int -> (('value, 'state, 'output) Ser_base.ctx -> ('output, error) Stdlib.result) -> ('output, error) Stdlib.result
val sequence : ('value, 'state, 'output) ctx -> int -> (('value, 'state, 'output) Ser_base.ctx -> ('output, error) Stdlib.result) -> ('output, error) Stdlib.result
val unit_variant : ('value, 'state, 'output) ctx -> string -> int -> string -> ('output, error) Stdlib.result
val newtype_variant : ('value, 'state, 'output) ctx -> string -> int -> string -> (('value, 'state, 'output) Ser_base.ctx -> ('output, error) Stdlib.result) -> ('output, error) Stdlib.result
val tuple_variant : ('value, 'state, 'output) ctx -> string -> int -> string -> int -> (('value, 'state, 'output) Ser_base.ctx -> ('output, error) Stdlib.result) -> ('output, error) Stdlib.result
val record_variant : ('value, 'state, 'output) ctx -> string -> int -> string -> int -> (('value, 'state, 'output) Ser_base.ctx -> ('output, error) Stdlib.result) -> ('output, error) Stdlib.result
val record : ('value, 'state, 'output) ctx -> string -> int -> (('value, 'state, 'output) Ser_base.ctx -> ('output, error) Stdlib.result) -> ('output, error) Stdlib.result
val element : ('value, 'state, 'output) ctx -> (('value, 'state, 'output) Ser_base.ctx -> ('output, error) Stdlib.result) -> ('output, error) Stdlib.result
val field : ('value, 'state, 'output) ctx -> string -> (('value, 'state, 'output) Ser_base.ctx -> ('output, error) Stdlib.result) -> ('output, error) Stdlib.result
val bool : bool -> ('value, 'state, 'output) ctx -> ('output, error) Stdlib.result
val serialize_int8 : char -> ('value, 'state, 'output) ctx -> ('output, error) Stdlib.result
val serialize_int16 : int -> ('value, 'state, 'output) ctx -> ('output, error) Stdlib.result
val serialize_int31 : int -> ('value, 'state, 'output) ctx -> ('output, error) Stdlib.result
val serialize_int32 : int32 -> ('value, 'state, 'output) ctx -> ('output, error) Stdlib.result
val serialize_int64 : int64 -> ('value, 'state, 'output) ctx -> ('output, error) Stdlib.result
val serialize_float : float -> ('value, 'state, 'output) ctx -> ('output, error) Stdlib.result
val int : int -> ('a, 'b, 'c) ctx -> ('c, error) Stdlib.result
val int8 : char -> ('a, 'b, 'c) ctx -> ('c, error) Stdlib.result
val int16 : int -> ('a, 'b, 'c) ctx -> ('c, error) Stdlib.result
val int32 : int32 -> ('a, 'b, 'c) ctx -> ('c, error) Stdlib.result
val int64 : int64 -> ('a, 'b, 'c) ctx -> ('c, error) Stdlib.result
val float : float -> ('a, 'b, 'c) ctx -> ('c, error) Stdlib.result
val string : string -> ('value, 'state, 'output) ctx -> ('output, error) Stdlib.result
val option : ('a -> ('value, 'state, 'output) Ser_base.ctx -> ('output, error) Stdlib.result) -> 'a option -> ('value, 'state, 'output) ctx -> ('output, error) Stdlib.result
val list : ('a -> ('b, 'c, unit) Ser_base.ctx -> (unit, error) Stdlib.result) -> 'a list -> ('b, 'c, unit) ctx -> (unit, error) Stdlib.result
val array : ('a -> ('b, 'c, unit) Ser_base.ctx -> (unit, error) Stdlib.result) -> 'a array -> ('b, 'c, unit) ctx -> (unit, error) Stdlib.result
val s : 'value 'value2 'state 'output. ('value, 'state, 'output) t -> 'value -> ('value2, 'state, 'output) ctx -> ('output, error) Stdlib.result
OCaml

Innovation. Community. Security.