package ocaml-protoc

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

Source file pb_format_util.ml

1
2
3
4
5
6
7
8
open Format

(* Not available in 4.03 *)
let pp_print_option ?(none = fun _ () -> ()) pp_v ppf = function
  | None -> none ppf ()
  | Some v -> pp_v ppf v

let pp_none ppf () = fprintf ppf "(None)"
OCaml

Innovation. Community. Security.