Expand description
The typed values’ string forms — one grammar for every format:
| Written | Value |
|---|---|
@file:images/logo.png, @user:alice | Value::Ref |
@bytes:iVBORw0… (base64) | Value::Bytes |
@@text | the plain string @text |
A string that starts with @ is always one of these (or an error), in
any field — so a typo in a reference is never silently plain text.
Enums§
- Spelled
- What a string spells.
- Typed
Error - A string written as a typed value that isn’t one.
Functions§
- classify
- What
sspells: a typed value if it’s written as one (@…), plain text otherwise;@@escapes a leading@. - escape_
at swith a leading@doubled, so it reads back as plain text.- flatten
vwith its typed values as their strings (@file:x): plain values only, for a tool that knows no typed ones.- spelling
- The string form of a typed value (
Nonefor the untyped ones).