package protocell

  1. Overview
  2. Docs
type 'v t
type _ typ =
  1. | String_t : Base.string typ
  2. | Bytes_t : Base.string typ
  3. | Int32_t : Base.int typ
  4. | Int64_t : Base.int typ
  5. | Sint32_t : Base.int typ
  6. | Sint64_t : Base.int typ
  7. | Uint32_t : Base.int typ
  8. | Uint64_t : Base.int typ
  9. | Fixed32_t : Base.int typ
  10. | Fixed64_t : Base.int typ
  11. | Sfixed32_t : Base.int typ
  12. | Sfixed64_t : Base.int typ
  13. | Float_t : Base.float typ
  14. | Double_t : Base.float typ
  15. | Bool_t : Base.bool typ
type validation_error = [
  1. | `Integer_outside_field_type_range of Base.int typ * Base.int
]
val typ_to_string : 'v typ -> Base.string
val default : 'v typ -> 'v
val create : 'v typ -> 'v -> ('v t, [> validation_error ]) Base.Result.t
val typ : 'v t -> 'v typ
val unpack : 'v t -> 'v