Skip to main content

Module escape

Module escape 

Source
Expand description

Helper code for character escaping.

Re-exportsยง

use crate::ascii; ๐Ÿ”’
use crate::fmt; ๐Ÿ”’
use crate::fmt::Write; ๐Ÿ”’
use crate::marker::PhantomData; ๐Ÿ”’
use crate::num::NonZero; ๐Ÿ”’
use crate::ops::Range; ๐Ÿ”’

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 ๐Ÿ”’