[−][src]Enum rustc_ap_rustc_lexer::unescape::EscapeError
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 characted (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 charactes 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 Eq for EscapeError
[src]
impl PartialEq<EscapeError> for EscapeError
[src]
fn eq(&self, other: &EscapeError) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for EscapeError
[src]
impl StructuralPartialEq for EscapeError
[src]
Auto Trait Implementations
impl RefUnwindSafe for EscapeError
impl Send for EscapeError
impl Sync for EscapeError
impl Unpin for EscapeError
impl UnwindSafe for EscapeError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,