package serde

  1. Overview
  2. Docs
A serialization framework for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

serde-0.0.1.tbz
sha256=14c12871e403a531994acc99ca9d140ea00ea4f6a794d38f01f606eb33615dbd
sha512=fea87f5067ed2c27b76dcb0ff96c6d39c939f62aecced8cd19790e20af794fbfaa99d727c04461e42ab115c97f39d0fe68f93f016ed2cb1471d8cc0d55b19b10

doc/serde.de/De/Variant_access/index.html

Module De.Variant_accessSource

Sourcetype ('tag, 'value, 'error) t = {
  1. tag : unit -> ('tag, 'error Error.de_error) result;
  2. unit_variant : unit -> (unit, 'error Error.de_error) result;
  3. tuple_variant : (module De__.Intf.Rec.Visitor_intf with type value = 'value) -> ('value, 'error Error.de_error) result;
  4. record_variant : 'field. (module De__.Intf.Rec.Visitor_intf with type tag = 'field and type value = 'value) -> (module De__.Intf.Rec.Visitor_intf with type value = 'field) -> fields:string list -> ('value, 'error Error.de_error) result;
}
Sourceval tag : ('a, 'b, [> `Duplicate_field of string | `Invalid_field_index of int | `Invalid_variant_index of int | `Message of string | `Missing_field of string | `Unexpected_exception of exn | `Unimplemented of string | `Unknown_field of string | `Unknown_variant of string ] as 'c) t -> ('a, 'c Error.de_error) result
Sourceval unit_variant : ('a, 'b, [> `Duplicate_field of string | `Invalid_field_index of int | `Invalid_variant_index of int | `Message of string | `Missing_field of string | `Unexpected_exception of exn | `Unimplemented of string | `Unknown_field of string | `Unknown_variant of string ] as 'c) t -> (unit, 'c Error.de_error) result
Sourceval tuple_variant : ('a, 'b, [> `Duplicate_field of string | `Invalid_field_index of int | `Invalid_variant_index of int | `Message of string | `Missing_field of string | `Unexpected_exception of exn | `Unimplemented of string | `Unknown_field of string | `Unknown_variant of string ] as 'c) t -> (module De__.Intf.Rec.Visitor_intf with type value = 'b) -> ('b, 'c Error.de_error) result
Sourceval record_variant : ('a, 'b, [> `Duplicate_field of string | `Invalid_field_index of int | `Invalid_variant_index of int | `Message of string | `Missing_field of string | `Unexpected_exception of exn | `Unimplemented of string | `Unknown_field of string | `Unknown_variant of string ] as 'c) t -> (module De__.Intf.Rec.Visitor_intf with type tag = 'd and type value = 'b) -> (module De__.Intf.Rec.Visitor_intf with type value = 'd) -> fields:string list -> ('b, 'c Error.de_error) result
OCaml

Innovation. Community. Security.