[−][src]Enum rustc_ap_rustc_lexer::LexRawStrError
Error produced validating a raw string. Represents cases like:
r##~"abcde"##
:LexRawStrError::InvalidStarter
r###"abcde"##
:LexRawStrError::NoTerminator { expected: 3, found: 2, possible_terminator_offset: Some(11)
- Too many
#
s (>65536):TooManyDelimiters
Variants
Non #
characters exist between r
and "
eg. r#~"..
The string was never terminated. possible_terminator_offset
is the number of characters after r
or br
where they
may have intended to terminate it.
More than 65536 #
s exist.
Trait Implementations
impl Clone for LexRawStrError
[src]
fn clone(&self) -> LexRawStrError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LexRawStrError
[src]
impl Debug for LexRawStrError
[src]
impl Eq for LexRawStrError
[src]
impl Ord for LexRawStrError
[src]
fn cmp(&self, other: &LexRawStrError) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<LexRawStrError> for LexRawStrError
[src]
fn eq(&self, other: &LexRawStrError) -> bool
[src]
fn ne(&self, other: &LexRawStrError) -> bool
[src]
impl PartialOrd<LexRawStrError> for LexRawStrError
[src]
fn partial_cmp(&self, other: &LexRawStrError) -> Option<Ordering>
[src]
fn lt(&self, other: &LexRawStrError) -> bool
[src]
fn le(&self, other: &LexRawStrError) -> bool
[src]
fn gt(&self, other: &LexRawStrError) -> bool
[src]
fn ge(&self, other: &LexRawStrError) -> bool
[src]
impl StructuralEq for LexRawStrError
[src]
impl StructuralPartialEq for LexRawStrError
[src]
Auto Trait Implementations
impl RefUnwindSafe for LexRawStrError
impl Send for LexRawStrError
impl Sync for LexRawStrError
impl Unpin for LexRawStrError
impl UnwindSafe for LexRawStrError
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,