Enum rustc_ap_rustc_lexer::unescape::EscapeError [−][src]
pub enum EscapeError {}Show variants
ZeroChars, MoreThanOneChar, LoneSlash, InvalidEscape, BareCarriageReturn, BareCarriageReturnInRawString, EscapeOnlyChar, TooShortHexEscape, InvalidCharInHexEscape, OutOfRangeHexEscape, NoBraceInUnicodeEscape, InvalidCharInUnicodeEscape, EmptyUnicodeEscape, UnclosedUnicodeEscape, LeadingUnderscoreUnicodeEscape, OverlongUnicodeEscape, LoneSurrogateUnicodeEscape, OutOfRangeUnicodeEscape, UnicodeEscapeInByte, NonAsciiCharInByte, NonAsciiCharInByteString,
Expand description
Errors that can occur during string unescaping.
Variants
Expand description
Expected 1 char, but 0 were found.
Expand description
Expected 1 char, but more than 1 were found.
Expand description
Escaped ’' character without continuation.
Expand description
Invalid escape character (e.g. ‘\z’).
Expand description
Raw ‘\r’ encountered.
Expand description
Raw ‘\r’ encountered in raw string.
Expand description
Unescaped character that was expected to be escaped (e.g. raw ‘\t’).
Expand description
Numeric character escape is too short (e.g. ‘\x1’).
Expand description
Invalid character in numeric escape (e.g. ‘\xz’)
Expand description
Character code in numeric escape is non-ascii (e.g. ‘\xFF’).
Expand description
‘\u’ not followed by ‘{’.
Expand description
Non-hexadecimal value in ‘\u{..}’.
Expand description
‘\u{}’
Expand description
No closing brace in ‘\u{..}’, e.g. ‘\u{12’.
Expand description
‘\u{_12}’
Expand description
More than 6 characters in ‘\u{..}’, e.g. ‘\u{10FFFF_FF}’
Expand description
Invalid in-bound unicode character code, e.g. ‘\u{DFFF}’.
Expand description
Out of bounds unicode character code, e.g. ‘\u{FFFFFF}’.
Expand description
Unicode escape code in byte literal.
Expand description
Non-ascii character in byte literal.
Expand description
Non-ascii character in byte string literal.
Trait Implementations
impl Debug for EscapeError
[src]
impl Debug for EscapeError
[src]impl PartialEq<EscapeError> for EscapeError
[src]
impl PartialEq<EscapeError> for EscapeError
[src]