[−][src]Enum rustc_ap_rustc_lexer::RawStrError
Error produced validating a raw string. Represents cases like:
r##~"abcde"##
:InvalidStarter
r###"abcde"##
:NoTerminator { expected: 3, found: 2, possible_terminator_offset: Some(11)
- Too many
#
s (>65535):TooManyDelimiters
Variants
Non #
characters exist between r
and "
eg. r#~"..
Fields of InvalidStarter
bad_char: char
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 65535 #
s exist.
Fields of TooManyDelimiters
found: usize
Trait Implementations
impl Clone for RawStrError
[src]
fn clone(&self) -> RawStrError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for RawStrError
[src]
impl Debug for RawStrError
[src]
impl Eq for RawStrError
[src]
impl Ord for RawStrError
[src]
fn cmp(&self, other: &RawStrError) -> 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<RawStrError> for RawStrError
[src]
fn eq(&self, other: &RawStrError) -> bool
[src]
fn ne(&self, other: &RawStrError) -> bool
[src]
impl PartialOrd<RawStrError> for RawStrError
[src]
fn partial_cmp(&self, other: &RawStrError) -> Option<Ordering>
[src]
fn lt(&self, other: &RawStrError) -> bool
[src]
fn le(&self, other: &RawStrError) -> bool
[src]
fn gt(&self, other: &RawStrError) -> bool
[src]
fn ge(&self, other: &RawStrError) -> bool
[src]
impl StructuralEq for RawStrError
[src]
impl StructuralPartialEq for RawStrError
[src]
Auto Trait Implementations
impl RefUnwindSafe for RawStrError
impl Send for RawStrError
impl Sync for RawStrError
impl Unpin for RawStrError
impl UnwindSafe for RawStrError
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>,