Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include De_base end
type ('value, 'state) t = 'state De_base.ctx -> ('value, error) Stdlib.result
and 'state ctx = 'state De_base.deserializer * 'state
type ('value, 'state, 'tag) visitor = ('value, 'state, 'tag) De_base.visitor = {
visit_int : 'state De_base.ctx -> int -> ('value, error) Stdlib.result;
visit_string : 'state De_base.ctx -> string -> ('value, error) Stdlib.result;
}
val deserializer :
('state De_base.ctx -> ('value, error) Stdlib.result) ->
('value, 'state) t
module type Deserializer = De_base.Deserializer
type 'state deserializer = (module Deserializer with type state = 'state)
val deserialize_variant :
'state ctx ->
de:('state De_base.ctx -> ('a, error) Stdlib.result) ->
name:string ->
variants:string list ->
('a, error) Stdlib.result
val deserialize_key :
'state ctx ->
('a, 'state, 'b) De_base.visitor ->
('a option, error) Stdlib.result
val deserialize_identifier :
'state ctx ->
('a, 'state, 'b) De_base.visitor ->
('a, error) Stdlib.result
val variant :
'a ctx ->
string ->
string list ->
('a De_base.ctx -> ('b, error) Stdlib.result) ->
('b, error) Stdlib.result
val identifier :
'a ctx ->
('b, 'a, 'c) De_base.visitor ->
('b, error) Stdlib.result
val next_field :
'a ctx ->
('b, 'a, 'c) De_base.visitor ->
('b option, error) Stdlib.result
val d : (('state De_base.deserializer * 'state) -> 'a) -> 'state ctx -> 'a