package ocaml-protoc-plugin
Module Ocaml_protoc_plugin.ResultSource
This module provides result type and functions for compatibility * with OCaml 4.06
Source
type error = [ | `Premature_end_of_input| `Unknown_field_type of int| `Wrong_field_type of string * Ocaml_protoc_plugin__.Field.t| `Illegal_value of string * Ocaml_protoc_plugin__.Field.t| `Unknown_enum_value of int| `Oneof_missing| `Required_field_missing
]Source
val open_error :
('a, [< error ]) result ->
('a,
[> `Illegal_value of string * Ocaml_protoc_plugin__.Field.t
| `Oneof_missing
| `Premature_end_of_input
| `Required_field_missing
| `Unknown_enum_value of int
| `Unknown_field_type of int
| `Wrong_field_type of string * Ocaml_protoc_plugin__.Field.t ])
resultSource
val pp :
(Format.formatter -> 'a -> unit) ->
Format.formatter ->
('a, [< error ]) result ->
unit