package ansifmt

  1. Overview
  2. Docs
val to_element : 't. 't -> using:(module Formatting.Interfaces.TO_ELEMENT with type t = 't) -> Element.t

to_element value (module M) converts value to an element using the transforming function provided by M.

val format : 't. ?stylizer:Formatting.Stylizer.t -> 't -> using:(module Formatting.Interfaces.TO_ELEMENT with type t = 't) -> string

format ?stylizer value (module M) renders value to a string provided that it can be converted to an element which transforming function is given in M.

OCaml

Innovation. Community. Security.