[−][src]Enum rustc_ap_rustc_lexer::RawStrError
Error produced validating a raw string. Represents cases like:
r##~"abcde"##:InvalidStarterr###"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: charThe 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: usizeTrait Implementations
impl Clone for RawStrError[src]
pub fn clone(&self) -> RawStrError[src]
pub 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]
pub fn cmp(&self, other: &RawStrError) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<RawStrError> for RawStrError[src]
pub fn eq(&self, other: &RawStrError) -> bool[src]
pub fn ne(&self, other: &RawStrError) -> bool[src]
impl PartialOrd<RawStrError> for RawStrError[src]
pub fn partial_cmp(&self, other: &RawStrError) -> Option<Ordering>[src]
pub fn lt(&self, other: &RawStrError) -> bool[src]
pub fn le(&self, other: &RawStrError) -> bool[src]
pub fn gt(&self, other: &RawStrError) -> bool[src]
pub fn ge(&self, other: &RawStrError) -> bool[src]
impl StructuralEq for RawStrError[src]
impl StructuralPartialEq for RawStrError[src]
Auto Trait Implementations
impl RefUnwindSafe for RawStrError[src]
impl Send for RawStrError[src]
impl Sync for RawStrError[src]
impl Unpin for RawStrError[src]
impl UnwindSafe for RawStrError[src]
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,
pub 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.
pub fn to_owned(&self) -> T[src]
pub 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.
pub 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>,