[−][src]Enum rune::ParseError
Error when parsing.
Variants
Error raised when we encounter end-of-file but we didn't expect it.
Fields of UnexpectedEof
span: Span
Span that caused the error.
Error raised when we expect and end-of-file but it didn't happen.
Fields of ExpectedEof
Expected use import but found something else.
Fields of ExpectedDeclUseImportComponent
Error encountered when we see a string escape sequence without a character being escaped.
Fields of ExpectedStringEscape
span: Span
Span that caused the error.
Expected a string close but didn't see it.
Fields of UnterminatedStrLit
span: Span
Span that caused the error.
Encountered an unterminated character literal.
Fields of UnterminatedCharLit
span: Span
The span of the unterminated literal.
Encountered an unterminated byte literal.
Fields of UnterminatedByteLit
span: Span
The span of the unterminated literal.
Expected a character to be closed.
Fields of ExpectedCharClose
span: Span
Span that caused the error.
Expected a byte to be closed.
Fields of ExpectedByteClose
span: Span
Span that caused the error.
Expected a string template to be closed, but it wasn't.
Fields of ExpectedTemplateClose
span: Span
Span that caused the error.
Error encountered when we see a character escape sequence without a character being escaped.
Fields of ExpectedCharEscape
span: Span
Span that caused the error.
Encountered an unexpected token.
Fields of TokenMismatch
Expected a pattern but got something else.
Fields of ExpectedPatError
Expected an expression but got something else.
Fields of ExpectedExpr
Expected an enum variant but got something else.
Fields of ExpectedEnumVariant
When we expect to see a loop (typically after a label).
Fields of ExpectedLoop
Expected a block expression but got something else.
Fields of ExpectedBlockExpr
Encountered an unexpected character.
Expected a number, but got something else.
Fields of ExpectedNumber
Expected a byte, but got something else.
Fields of ExpectedByte
Expected a char, but got something else.
Fields of ExpectedChar
Expected a string, but got something else.
Fields of ExpectedString
Expected an operator but got something else.
Fields of ExpectedOperator
Expected a boolean literal.
Fields of ExpectedBool
Expected a valid object key.
Fields of ExpectedLitObjectKey
Expected a unary operator.
Fields of ExpectedUnaryOperator
Expression group required to break precedence.
Fields of PrecedenceGroupRequired
span: Span
Span that caused the error.
Attempt to read a slice which doesn't exist.
Fields of BadSlice
span: Span
The slice we tried to read.
Encountered a bad string escape sequence.
Fields of BadEscapeSequence
span: Span
Span of the illegal escape sequence.
Tried to resolve an illegal number literal.
Fields of BadNumberLiteral
span: Span
Span of the illegal number literal.
Number out of bounds.
Fields of BadNumberOutOfBounds
span: Span
Span of the illegal number literal.
A bad character literal.
Fields of BadCharLiteral
span: Span
Span containing the bad character literal.
A bad byte literal.
Fields of BadByteLiteral
span: Span
Span containing the bad byte literal.
We tried to parse a unicode escape in a byte sequence.
Fields of UnicodeEscapeNotSupported
span: Span
Where the bad escape is.
Error when we encounter a bad unicode escape.
Fields of BadUnicodeEscape
span: Span
Where the bad escape is.
Error when we encounter a bad byte escape in bounds.
Fields of UnsupportedUnicodeByteEscape
span: Span
Where the bad escape is.
Error when we encounter a bad byte escape in bounds.
Fields of UnsupportedByteEscape
span: Span
Where the bad escape is.
Error when we encounter a bad byte escape.
Fields of BadByteEscape
span: Span
Where the bad escape is.
When we encounter an invalid template literal.
Fields of InvalidTemplateLiteral
span: Span
The span where the error occured.
When we encounter an unescaped closing brace }
.
Fields of UnexpectedCloseBrace
span: Span
Where the brace was encountered.
When we encounter an expression that cannot be used in a chained manner.
Fields of UnsupportedFieldAccess
span: Span
Span of the expression that can't be used in a chain.
Trying to use a token that is not supported as a function argument.
Fields of ExpectedFunctionArgument
span: Span
Where the argument is.
Trying to use an expression as async when it's not supported.
Fields of UnsupportedAsyncExpr
span: Span
Where the expression is.
Implementations
impl ParseError
[src]
Trait Implementations
impl Clone for ParseError
[src]
fn clone(&self) -> ParseError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ParseError
[src]
impl Debug for ParseError
[src]
impl Display for ParseError
[src]
impl Error for ParseError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<ParseError> for CompileError
[src]
fn from(source: ParseError) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,