Enum rustc_ap_rustc_lexer::RawStrError [−][src]
pub enum RawStrError { InvalidStarter { bad_char: char, }, NoTerminator { expected: usize, found: usize, possible_terminator_offset: Option<usize>, }, TooManyDelimiters { found: usize, }, }
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#~"..
Show fields
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.
Show fields
More than 65535 #
s exist.
Show fields
Fields of TooManyDelimiters
found: usize
Trait Implementations
impl Clone for RawStrError
[src]
impl Clone for RawStrError
[src]fn clone(&self) -> RawStrError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for RawStrError
[src]
impl Copy for RawStrError
[src]impl Eq for RawStrError
[src]
impl Eq for RawStrError
[src]impl Ord for RawStrError
[src]
impl Ord for RawStrError
[src]impl PartialEq<RawStrError> for RawStrError
[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]
impl PartialOrd<RawStrError> for RawStrError
[src]impl StructuralEq for RawStrError
[src]
impl StructuralEq for RawStrError
[src]impl StructuralPartialEq for RawStrError
[src]
impl StructuralPartialEq for RawStrError
[src]Auto Trait Implementations
impl RefUnwindSafe for RawStrError
impl RefUnwindSafe for RawStrError
impl Send for RawStrError
impl Send for RawStrError
impl Sync for RawStrError
impl Sync for RawStrError
impl Unpin for RawStrError
impl Unpin for RawStrError
impl UnwindSafe for RawStrError
impl UnwindSafe for RawStrError