Available on crate feature
parser only.Expand description
ยงEscape (write codec)
Apply the RFC 5545 3.3.11 value escapes when serializing.
This is the write half of the escaping codec; its inverse is
unescape, and the version-specific rules
are selected by the Escaper. The structural encoders in
encode run every value leaf through here.
No mode ever writes a byte that would end the line, whatever a caller put in the value.
Where a version has no escape for one, as vCalendar 1.0 has none for a
newline, the escape that keeps the calendar readable is written and the
round trip through unescape is not exact.
A parameter value is a different alphabet and has its own writer,
escape_param, applying the RFC 6868 caret encoding rather than any
backslash one.