mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
2 lines
No EOL
2.4 KiB
HTML
2 lines
No EOL
2.4 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Ext (containers.Containers_pp.Ext)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.2.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../../index.html">containers</a> » <a href="../index.html">Containers_pp</a> » Ext</nav><header class="odoc-preamble"><h1>Module <code><span>Containers_pp.Ext</span></code></h1><p>Extension node.</p><p>Custom nodes can be used to add user-defined behavior to the rendered output. For example, documents might be annotated with ANSI-terminal colors, or with HTML tags.</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type anchored" id="type-t"><a href="#type-t" class="anchor"></a><code><span><span class="keyword">type</span> <span>'a t</span></span><span> = </span><span>{</span></code><ol><li id="type-t.pre" class="def record field anchored"><a href="#type-t.pre" class="anchor"></a><code><span>pre : <span><a href="../Out/index.html#type-t">Out.t</a> <span class="arrow">-></span></span> <span><span class="type-var">'a</span> <span class="arrow">-></span></span> unit;</span></code><div class="def-doc"><span class="comment-delim">(*</span><p>Printed before the wrapped value.</p><span class="comment-delim">*)</span></div></li><li id="type-t.post" class="def record field anchored"><a href="#type-t.post" class="anchor"></a><code><span>post : <span><a href="../Out/index.html#type-t">Out.t</a> <span class="arrow">-></span></span> <span><span class="type-var">'a</span> <span class="arrow">-></span></span> unit;</span></code><div class="def-doc"><span class="comment-delim">(*</span><p>Printed after the wrapped value.</p><span class="comment-delim">*)</span></div></li></ol><code><span>}</span></code></div><div class="spec-doc"><p>An extension is a custom document node. It takes a value of type <code>'a</code>, and a document <code>d</code>, and can output what it wants based on the custom value before and after <code>d</code> is printed.</p><p>The extension is considered to have width <code>0</code>.</p></div></div></div></body></html> |