Module escape

Source
Expand description

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.

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.

Unionsยง

MaybeEscapedCharacter ๐Ÿ”’