package containers

  1. Overview
  2. Docs

Arbitrary output.

This is used for user-provided output.

type t = {
  1. char : char -> unit;
    (*

    Output a single char. The char is assumed not to be '\n'.

    *)
  2. sub_string : string -> int -> int -> unit;
    (*

    Output a string slice (optim for string)

    *)
  3. string : string -> unit;
    (*

    Output a string

    *)
  4. newline : unit -> unit;
    (*

    Output a newline

    *)
}
val of_buffer : Stdlib.Buffer.t -> t
val char : t -> char -> unit
val string : t -> string -> unit
val sub_string : t -> string -> int -> int -> unit
val newline : t -> unit
OCaml

Innovation. Community. Security.