Expand description
Helper code for character escaping.
Structsยง
- Always
Escaped ๐ - Marker type to indicate that the character is always escaped, used to optimize the iterator implementation.
- Escape
Iter ๐Inner - An iterator over a possibly escaped character.
- Maybe
Escaped ๐ - Marker type to indicate that the character may be escaped, used to optimize the iterator implementation.
Constantsยง
- HEX_
DIGITS ๐
Functionsยง
- backslash ๐
- Escapes a character with
\x
representation. - escape_
ascii ๐ - Escapes an ASCII character.
- escape_
unicode ๐ - Escapes a character with
\u{NNNN}
representation. - hex_
escape ๐ - Escapes a character with
\xNN
representation. - verbatim ๐
- Returns a buffer with the verbatim character and its corresponding range.