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/index.html
Module De
Source
include module type of struct include Error end
Source
type 'err de_error =
[> `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
| `Missing_field of string
| `Unimplemented of string
| `Unknown_field of string
| `Unknown_variant of string ] as 'err
Access modules
boilerplace below is because we don't have modular implicits yet.
it threads the two modules manually, and makes sure the all the types are escaping correctly.
Source
val deserialize_unit :
'value 'state. 'state Deserializer.t ->
'value Visitor.t ->
('value,
[> `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 ]
de_error)
result
Source
val deserialize_string :
'value 'state. 'state Deserializer.t ->
'value Visitor.t ->
('value,
[> `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 ]
de_error)
result
Source
val deserialize_int :
'value 'state. 'state Deserializer.t ->
'value Visitor.t ->
('value,
[> `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 ]
de_error)
result
Source
val deserialize_bool :
'value 'state. 'state Deserializer.t ->
'value Visitor.t ->
('value,
[> `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 ]
de_error)
result
Source
val deserialize_identifier :
'value 'state. 'state Deserializer.t ->
'value Visitor.t ->
('value,
[> `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 ]
de_error)
result
Source
val deserialize_record :
'value 'field 'state. 'state Deserializer.t ->
('value, 'field) Visitor.with_tag ->
'field Visitor.t ->
name:string ->
fields:string list ->
('value,
[> `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 ]
de_error)
result
Source
val deserialize_seq :
'value 'state. 'state Deserializer.t ->
'value Visitor.t ->
('value,
[> `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 ]
de_error)
result
Source
val deserialize_variant :
'value 'tag 'state. 'state Deserializer.t ->
('value, 'tag) Visitor.with_tag ->
'tag Visitor.t ->
name:string ->
variants:string list ->
('value,
[> `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 ]
de_error)
result
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>