#[repr(u16)]pub enum ErrorKind {
Show 35 variants
UnterminatedStringLiteral = 1_001,
UnterminatedComment = 1_002,
UnterminatedDatalines = 1_003,
InvalidNumericLiteral = 1_004,
UnterminatedHexNumericLiteral = 1_005,
MissingExpectedRParen = 1_007,
MissingExpectedAssign = 1_008,
MissingExpectedLParen = 1_009,
MissingExpectedComma = 1_010,
MissingExpectedFSlash = 1_011,
MissingExpectedSemiOrEOF = 1_012,
InvalidOrOutOfOrderStatement = 1_013,
InvalidMacroLetVarName = 1_014,
InvalidMacroLocalGlobalReadonlyVarName = 1_015,
MissingMacroLocalReadonlyKw = 1_016,
MissingMacroGlobalReadonlyKw = 1_017,
InvalidMacroDefName = 1_018,
InvalidMacroDefArgName = 1_019,
UnexpectedSemiInDoLoop = 1_020,
OpenCodeRecursionError = 1_021,
InvalidHexStringConstant = 1_022,
MissingSysfuncFuncName = 1_023,
MissingSyscallRoutineName = 1_024,
TokenIdxOutOfBounds = 2_001,
StringLiteralOutOfBounds = 2_002,
FileTooLarge = 3_001,
InternalErrorMissingCheckpoint = 9_001,
InternalErrorNoTokenText = 9_002,
InternalErrorOutOfBounds = 9_003,
InternalErrorEmptyModeStack = 9_004,
InternalErrorNoTokenToReplace = 9_005,
InternalErrorUnexpectedTokenType = 9_006,
InternalErrorUnexpectedModeStack = 9_007,
InternalErrorInfiniteLoop = 9_008,
InternalErrorEmptyPendingStatStack = 9_009,
}
Variants§
UnterminatedStringLiteral = 1_001
UnterminatedComment = 1_002
UnterminatedDatalines = 1_003
InvalidNumericLiteral = 1_004
UnterminatedHexNumericLiteral = 1_005
MissingExpectedRParen = 1_007
MissingExpectedAssign = 1_008
MissingExpectedLParen = 1_009
MissingExpectedComma = 1_010
MissingExpectedFSlash = 1_011
MissingExpectedSemiOrEOF = 1_012
InvalidOrOutOfOrderStatement = 1_013
InvalidMacroLetVarName = 1_014
InvalidMacroLocalGlobalReadonlyVarName = 1_015
MissingMacroLocalReadonlyKw = 1_016
MissingMacroGlobalReadonlyKw = 1_017
InvalidMacroDefName = 1_018
InvalidMacroDefArgName = 1_019
UnexpectedSemiInDoLoop = 1_020
OpenCodeRecursionError = 1_021
InvalidHexStringConstant = 1_022
MissingSysfuncFuncName = 1_023
MissingSyscallRoutineName = 1_024
TokenIdxOutOfBounds = 2_001
StringLiteralOutOfBounds = 2_002
FileTooLarge = 3_001
InternalErrorMissingCheckpoint = 9_001
InternalErrorNoTokenText = 9_002
InternalErrorOutOfBounds = 9_003
InternalErrorEmptyModeStack = 9_004
InternalErrorNoTokenToReplace = 9_005
InternalErrorUnexpectedTokenType = 9_006
InternalErrorUnexpectedModeStack = 9_007
InternalErrorInfiniteLoop = 9_008
InternalErrorEmptyPendingStatStack = 9_009
Implementations§
Source§impl ErrorKind
impl ErrorKind
pub fn is_internal(&self) -> bool
pub fn is_warning(&self) -> bool
pub fn is_code_error(&self) -> bool
Trait Implementations§
Source§impl EnumMessage for ErrorKind
impl EnumMessage for ErrorKind
fn get_message(&self) -> Option<&'static str>
fn get_detailed_message(&self) -> Option<&'static str>
Source§fn get_documentation(&self) -> Option<&'static str>
fn get_documentation(&self) -> Option<&'static str>
Get the doc comment associated with a variant if it exists.
fn get_serializations(&self) -> &'static [&'static str]
Source§impl IntoEnumIterator for ErrorKind
impl IntoEnumIterator for ErrorKind
type Iterator = ErrorKindIter
fn iter() -> ErrorKindIter ⓘ
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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