package cconv

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module CConvSource

Bidirectional Conversion

Sourceexception ConversionFailure of string
Sourcetype 'a sequence = ('a -> unit) -> unit
Sourceval report_error : ('a, Buffer.t, unit, 'b) format4 -> 'a

Helper to report conversion errors.

Encode

Helps encoding values into a serialization format (building values of some type 'a, such as a JSON tree)

Sourcemodule Encode : sig ... end
Sourcemodule Decode : sig ... end
Sourcetype 'a or_error = [
  1. | `Ok of 'a
  2. | `Error of string
]
Sourceval encode : 'src Encode.encoder -> 'into Encode.output -> 'src -> 'into

Encode a value into the serialization format 'into

Sourceval to_string : 'src Encode.encoder -> 'src -> string

Use Encode.string_target to print the value

Sourceval decode_exn : 'src Decode.source -> 'into Decode.decoder -> 'src -> 'into

Decode a serialized value

Sourceval decode : 'src Decode.source -> 'into Decode.decoder -> 'src -> 'into or_error
OCaml

Innovation. Community. Security.