package serde

  1. Overview
  2. Docs
type ('value, 'state, 'tag) t = ('value, 'state, 'tag) De_base.visitor = {
  1. visit_int : 'state De_base.ctx -> int -> ('value, error) Stdlib.result;
  2. visit_string : 'state De_base.ctx -> string -> ('value, error) Stdlib.result;
}
val default : ('a, 'b, 'c) De_base.visitor
val make : ?visit_int:('a De_base.ctx -> int -> ('b, error) Stdlib.result) -> ?visit_string:('a De_base.ctx -> string -> ('b, error) Stdlib.result) -> unit -> ('b, 'a, 'c) t
val visit_string : 'a De_base.ctx -> ('b, 'a, 'c) t -> string -> ('b, error) Stdlib.result
val visit_int : 'a De_base.ctx -> ('b, 'a, 'c) t -> int -> ('b, error) Stdlib.result
OCaml

Innovation. Community. Security.