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) result;
  2. visit_string : 'state De_base.ctx -> string -> ('value, error) result;
}
val default : ('a, 'b, 'c) De_base.visitor
val make : ?visit_int:('a De_base.ctx -> int -> ('b, error) result) -> ?visit_string:('a De_base.ctx -> string -> ('b, error) result) -> unit -> ('b, 'a, 'c) t
val visit_string : 'a De_base.ctx -> ('b, 'a, 'c) t -> string -> ('b, error) result
val visit_int : 'a De_base.ctx -> ('b, 'a, 'c) t -> int -> ('b, error) result
OCaml

Innovation. Community. Security.