package orsetto
A library of assorted structured data interchange languages
Install
Dune Dependency
Authors
Maintainers
Sources
r1.1.3.tar.gz
sha512=9b654edb663ae697563f150824047052f3b1bf760398f24bce6350553f031f73c46b6337239a1acd871e61238597ea92046809e3358290ff14d6ba671b449085
doc/orsetto.cbor/Cbor_encode/Render/index.html
Module Cbor_encode.Render
A submodule to encapsulate functions for use with data rendering models.
class 'a deterministic_index : ?model:'a Cf_data_render.model -> 'a Cf_type.nym -> 'a Cf_data_render.index
Use new index p
to compose indexes for tables and structures encoded as CBOR maps with keys sorted in deterministic order. Use the ~model
parameter to provide the data model for keys that are not primitive.
val tagged : int64 -> 'v Cf_data_render.model -> 'v Cf_data_render.model
Use tagged n m
to make a data rendering model that applies the CBOR tag n
to the data rendered by m
. Such models can only be rendered into encoding schemes by the scheme
function for CBOR (see below).
val scheme : 'v Cf_data_render.model -> 'v Cf_encode.scheme
Use scheme m
to make an encoding scheme for values according to an abstract data model m
.
val packet : 'v Cf_data_render.model -> 'v -> unit t
Use packet m v
to make the CBOR encoding of v
according to the data render model m
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>