Module escape
Helper code for character escaping.
Structs
- AlwaysEscaped Marker type to indicate that the character is always escaped, used to optimize the iterator implementation.
- EscapeIterInner An iterator over a possibly escaped character.
- MaybeEscaped Marker type to indicate that the character may be escaped, used to optimize the iterator implementation.
Unions
Functions
-
backslash
Escapes a character with
\xrepresentation. - escape_ascii Escapes an ASCII character.
-
escape_unicode
Escapes a character with
\u{NNNN}representation. -
hex_escape
Escapes a character with
\xNNrepresentation. - verbatim Returns a buffer with the verbatim character and its corresponding range.