package data-encoding
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val layouts : layout list
The list of layouts available to encode input
.
tag layout
computes the tag of Data_encoding.union
to be used to encode values classified as layout
.
Warning: It is expected that tag layout < 2^tag_len - 1
.
val title : layout -> string option
title layout
computes the title to be used in documentation for the given layout. The title is not always available (some elements don't have one) and None
is used in that case.
partial_encoding layout
returns the encoding to use for values classified as layout
.
This encoding can be partial in the sense that it may fail (it will raise an Invalid_argument
) for some values of x
. However, it is expected that partial_encoding (classify x) x
will always succeed.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>