= 1024" x-on:close-sidebar="sidebar=window.innerWidth >= 1024 && true">
ON THIS PAGE
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Bidirectional Conversion
Encode
Helps encoding values into a serialization format (building values of some type 'a, such as a JSON tree)
module Encode : sig ... end
module Decode : sig ... end
val encode : 'src Encode.encoder -> 'into Encode.output -> 'src -> 'into
Encode a value into the serialization format 'into
val to_string : 'src Encode.encoder -> 'src -> string
Use Encode.string_target
to print the value
val decode_exn : 'src Decode.source -> 'into Decode.decoder -> 'src -> 'into
Decode a serialized value
val decode :
'src Decode.source ->
'into Decode.decoder ->
'src ->
'into or_error