Enum rsjsonnet_lang::lexer::LexError
source · pub enum LexError {
Show 14 variants
InvalidChar {
span: SpanId,
chr: char,
},
InvalidUtf8 {
span: SpanId,
seq: Vec<u8>,
},
UnfinishedMultilineComment {
span: SpanId,
},
LeadingZeroInNumber {
span: SpanId,
},
MissingFracDigits {
span: SpanId,
},
MissingExpDigits {
span: SpanId,
},
ExpOverflow {
span: SpanId,
},
InvalidEscapeInString {
span: SpanId,
chr: char,
},
IncompleteUnicodeEscape {
span: SpanId,
},
InvalidUtf16EscapeSequence {
span: SpanId,
cu1: u16,
cu2: Option<u16>,
},
UnfinishedString {
span: SpanId,
},
MissingLineBreakAfterTextBlockStart {
span: SpanId,
},
MissingWhitespaceTextBlockStart {
span: SpanId,
},
InvalidTextBlockTermination {
span: SpanId,
},
}Variants§
InvalidChar
Invalid character that does not represent any Jsonnet token
InvalidUtf8
Invalid UTF-8 sequence outside a string or comment
UnfinishedMultilineComment
End-of-file reached before finding closing */
LeadingZeroInNumber
Leading zero in number
MissingFracDigits
Missing fractional digits after . in number
MissingExpDigits
Missing exponent digits after e in number
ExpOverflow
Missing exponent digits after e in number
InvalidEscapeInString
Invalid escape sequence in string
IncompleteUnicodeEscape
Incomplete Unicode escape sequence (\uXXXX) in string
InvalidUtf16EscapeSequence
Invalid codepoint in Unicode escape sequence (\uXXXX or
\uXXXX\uYYYY) in string
UnfinishedString
File ended before ending a string
MissingLineBreakAfterTextBlockStart
Missing line break after |||
MissingWhitespaceTextBlockStart
Missing whitespace at the beginning of the first file of a text block.
InvalidTextBlockTermination
Text block is not ended correctly.
Trait Implementations§
source§impl PartialEq for LexError
impl PartialEq for LexError
impl Eq for LexError
impl StructuralPartialEq for LexError
Auto Trait Implementations§
impl Freeze for LexError
impl RefUnwindSafe for LexError
impl Send for LexError
impl Sync for LexError
impl Unpin for LexError
impl UnwindSafe for LexError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)