package orsetto
Install
Dune Dependency
Authors
Maintainers
Sources
sha512=9b654edb663ae697563f150824047052f3b1bf760398f24bce6350553f031f73c46b6337239a1acd871e61238597ea92046809e3358290ff14d6ba671b449085
doc/orsetto.cf/Cf_annot/Create/argument-1-B/Meta/index.html
Module B.Meta
The specification of structural metadata.
val default_fields : fields list
If a list of fields is not provided to the meta formatter, then this default_fields
is used.
val symbol_type : Symbol.t Cf_type.nym
The witness for the symbol type.
val of_opaque_position :
?style:[< Meta.style ] ->
?fields:fields list ->
Cf_type.opaque ->
Position.t
Annotation profiles use of_opaque_position v
to translate v
into a position value provided it was decoded from an interchange language representation produced by to_opaque_position
above.
The ~style
parameter controls whether and how record and variant names should be decoded from the opaque value.
The ~fields
parameters facilitates controlling which portions of the position record are required to be present in the decoded value. Default values for fields not required should be used if not present in the decoded value.
Raises Cf_type.Type_error
if the type witnessed by v
is wrong according to style and fields required. Raises Failure
if the witness is correct but the underlying value is unsound.
val to_opaque_position :
?style:[< Meta.style ] ->
?fields:fields list ->
Position.t ->
Cf_type.opaque
Annotation profiles use to_opaque_position p
to translate p
into an opaque value ready to encode in an interchange language.
The ~style
parameter controls whether and how record and variant names are encoded in the opaque value.
The ~fields
parameter facilitates controlling which portions of the position record are to be included in the serialized octets.