Expand description
._meta 的保注释写回与新建模板渲染。
写回直接基于 toml_edit::DocumentMut,因此已有的 # 注释与键的书写顺序都会被保留
(规范硬性约束 6、DoD 16)。
Functions§
- author_
to_ table [[authors]]元素 → TOML 表(按规范键序)。- entry_
to_ table [[entries]]元素 → TOML 表(按规范键序)。- meta_
from_ text - 从 TOML 文本构建
Meta(模板渲染后使用)。 - ref_
to_ table [[refs]]元素 → TOML 表(按规范键序)。- render_
branch_ meta - 渲染 node / branch
._meta模板。 - render_
root_ meta - 渲染 root
._meta模板。 - strip_
line_ comments - 去掉整行
#注释(不处理字符串内的#);str fmt --strip-comments的唯一入口。 - toml_
str - TOML 基本字符串转义。