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
Expected 1 char, but 0 were found.
Expected 1 char, but more than 1 were found.
Escaped ’' character without continuation.
Invalid escape character (e.g. ‘\z’).
Raw ‘\r’ encountered.
Raw ‘\r’ encountered in raw string.
Unescaped character that was expected to be escaped (e.g. raw ‘\t’).
Numeric character escape is too short (e.g. ‘\x1’).
Invalid character in numeric escape (e.g. ‘\xz’)
Character code in numeric escape is non-ascii (e.g. ‘\xFF’).
‘\u’ not followed by ‘{’.
Non-hexadecimal value in ‘\u{..}’.
‘\u{}’
No closing brace in ‘\u{..}’, e.g. ‘\u{12’.
‘\u{_12}’
More than 6 characters in ‘\u{..}’, e.g. ‘\u{10FFFF_FF}’
Invalid in-bound unicode character code, e.g. ‘\u{DFFF}’.
Out of bounds unicode character code, e.g. ‘\u{FFFFFF}’.
Unicode escape code in byte literal.
Non-ascii character in byte literal.
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]