#[non_exhaustive]pub enum CompileErrorKind {
MalformedNumber,
UnfinishedString,
MalformedEscape,
UnfinishedLongString,
UnfinishedLongComment,
InvalidLongStringDelimiter,
UnexpectedCharacter,
Syntax,
Unsupported,
Limit,
InvalidProgram,
}Expand description
The category of a source compilation failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MalformedNumber
A numeric literal could not be parsed.
UnfinishedString
A quoted string was not terminated.
MalformedEscape
A string escape is invalid.
UnfinishedLongString
A long string was not terminated.
UnfinishedLongComment
A long comment was not terminated.
InvalidLongStringDelimiter
A long string delimiter is invalid.
UnexpectedCharacter
The lexer encountered an invalid character.
Syntax
The source violates Lua syntax.
Unsupported
The source requests an unsupported construct.
Limit
Compilation exceeded a compiler limit.
InvalidProgram
The emitted bytecode failed validation.
Trait Implementations§
Source§impl Clone for CompileErrorKind
impl Clone for CompileErrorKind
impl Copy for CompileErrorKind
Source§impl Debug for CompileErrorKind
impl Debug for CompileErrorKind
impl Eq for CompileErrorKind
Source§impl PartialEq for CompileErrorKind
impl PartialEq for CompileErrorKind
impl StructuralPartialEq for CompileErrorKind
Auto Trait Implementations§
impl Freeze for CompileErrorKind
impl RefUnwindSafe for CompileErrorKind
impl Send for CompileErrorKind
impl Sync for CompileErrorKind
impl Unpin for CompileErrorKind
impl UnsafeUnpin for CompileErrorKind
impl UnwindSafe for CompileErrorKind
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