|
|
|
@ -68,8 +68,7 @@ |
|
|
|
|
|
|
|
|
|
<section><title>Value Types</title> |
|
|
|
|
|
|
|
|
|
<para>Value types are type that take a value parameter. The only value type |
|
|
|
|
in the library is <literal>enum</literal>.</para> |
|
|
|
|
<para>Value types are type that take a value parameter.</para> |
|
|
|
|
|
|
|
|
|
<variablelist> |
|
|
|
|
<varlistentry> |
|
|
|
@ -141,6 +140,17 @@ |
|
|
|
|
str</literal>. Multiple definitions cannot be |
|
|
|
|
merged.</para></listitem> |
|
|
|
|
</varlistentry> |
|
|
|
|
<varlistentry> |
|
|
|
|
<term><varname>types.coercedTo</varname> <replaceable>from</replaceable> |
|
|
|
|
<replaceable>f</replaceable> <replaceable>to</replaceable></term> |
|
|
|
|
<listitem><para>Type <replaceable>to</replaceable> or type |
|
|
|
|
<replaceable>from</replaceable> which will be coerced to |
|
|
|
|
type <replaceable>to</replaceable> using function |
|
|
|
|
<replaceable>f</replaceable> which takes an argument of type |
|
|
|
|
<replaceable>from</replaceable> and return a value of type |
|
|
|
|
<replaceable>to</replaceable>. Can be used to preserve backwards |
|
|
|
|
compatibility of an option if its type was changed.</para></listitem> |
|
|
|
|
</varlistentry> |
|
|
|
|
</variablelist> |
|
|
|
|
|
|
|
|
|
</section> |
|
|
|
|