package orsetto
Install
Dune Dependency
Authors
Maintainers
Sources
sha512=9b654edb663ae697563f150824047052f3b1bf760398f24bce6350553f031f73c46b6337239a1acd871e61238597ea92046809e3358290ff14d6ba671b449085
doc/orsetto.cf/Cf_emit/To_formatter/index.html
Module Cf_emit.To_formatter
type nonrec 'a t = (Format.formatter, 'a) t
The type of emitters to Format.formatter
channels.
val char : char t
The emitter for characters.
val string : string t
The emitter for strings.
val int : int t
The emitter for integers.
val float : float t
The emitter for floating point numbers.
val bool : bool t
The emitter for boolean values.
val break : int -> int t
Use break d
to make an emitter for formatting break hints for offset d
that use the input for the number of spaces.
val space : unit t
The single space break hint.
val cut : unit t
The zero space break hint.
Use box d m
to enclose m
in a compacting pretty-printing box with offset d
.
Use vbox d m
to enclose m
in a vertical pretty-printing box with offset d
.
Use hvbox d m
to enclose m
in a horizontal/vertical pretty-printing box with offset d
.
Use hovbox d m
to enclose m
in a horizontal-or-vertical pretty-printing box with offset d
.
val string_as : int -> string t
Use string_as n
to make a string emitter that formats the string as if it is length n
.
val to_string : 'a t -> 'a -> string
Use to_string m v
to emit v
with m
to a fresh string formatter and returns its contents.
val to_channel : out_channel -> 'a t -> 'a -> unit
Use to_string m v
to emit v
with m
to a fresh output channel formatter.
module Render : sig ... end