package textutils

  1. Overview
  2. Docs
Text output utilities

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=b2681af1f4029245a5c187c4f0834ac470ada6ffc69db7c7e219b3244f88b3d5

doc/textutils.ascii_table_kernel/Ascii_table_kernel/Column/Of_field/index.html

Module Column.Of_fieldSource

This module is used for constructing lists of 'a ts from a record's fields. The intention is to use Fields.to_list to obtain a list.

Sourceval field : ?align:Align.t -> ?min_width:int -> ?max_width:int -> ?show:[ `Yes | `No | `If_not_empty ] -> ?header:string -> ('field -> string) -> ('record, 'field) Core.Field.t -> 'record t

Create a column based on a field of a record.

Sourceval field_attr : ?align:Align.t -> ?min_width:int -> ?max_width:int -> ?show:[ `Yes | `No | `If_not_empty ] -> ?header:string -> ('field -> Ansi_kernel.Attr.t list * string) -> ('record, 'field) Core.Field.t -> 'record t

field_attr is to field as create_attr is to create.

Sourceval field_opt : ?align:Align.t -> ?min_width:int -> ?max_width:int -> ?show:[ `Yes | `No | `If_not_empty ] -> ?header:string -> ('field -> string) -> ('record, 'field option) Core.Field.t -> 'record t

Like field, but defaults to "" if None

Sourceval field_opt_attr : ?align:Align.t -> ?min_width:int -> ?max_width:int -> ?show:[ `Yes | `No | `If_not_empty ] -> ?header:string -> ('field -> Ansi_kernel.Attr.t list * string) -> ('record, 'field option) Core.Field.t -> 'record t

Like field_attr, but defaults to ([], "") if None

OCaml

Innovation. Community. Security.