package serde
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_access
Source
Source
type ('tag, 'value, 'error) t = {
tag : unit -> ('tag, 'error Error.de_error) result;
unit_variant : unit -> (unit, 'error Error.de_error) result;
tuple_variant : (module De__.Intf.Rec.Visitor_intf with type value = 'value) -> ('value, 'error Error.de_error) result;
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;
}
Source
val 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
Source
val 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
Source
val 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
Source
val 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
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>