pub enum CompileError {
Show 17 variants
InvalidNumber {
number: String,
span: Range<usize>,
custom_label: Option<String>,
},
InvalidRegister {
register: String,
span: Range<usize>,
custom_label: Option<String>,
},
UnexpectedCharacter {
character: char,
span: Range<usize>,
custom_label: Option<String>,
},
UnterminatedStringLiteral {
span: Range<usize>,
custom_label: Option<String>,
},
InvalidGlobalDecl {
span: Range<usize>,
custom_label: Option<String>,
},
InvalidExternDecl {
span: Range<usize>,
custom_label: Option<String>,
},
InvalidRodataDecl {
span: Range<usize>,
custom_label: Option<String>,
},
InvalidEquDecl {
span: Range<usize>,
custom_label: Option<String>,
},
InvalidDirective {
directive: String,
span: Range<usize>,
custom_label: Option<String>,
},
InvalidInstruction {
instruction: String,
span: Range<usize>,
custom_label: Option<String>,
},
UnexpectedToken {
token: String,
span: Range<usize>,
custom_label: Option<String>,
},
UnmatchedParen {
span: Range<usize>,
custom_label: Option<String>,
},
OutOfRangeLiteral {
span: Range<usize>,
custom_label: Option<String>,
},
InvalidRODataDirective {
span: Range<usize>,
custom_label: Option<String>,
},
UndefinedLabel {
label: String,
span: Range<usize>,
custom_label: Option<String>,
},
DuplicateLabel {
label: String,
span: Range<usize>,
original_span: Range<usize>,
custom_label: Option<String>,
},
BytecodeError {
error: String,
span: Range<usize>,
custom_label: Option<String>,
},
}Variants§
InvalidNumber
InvalidRegister
UnexpectedCharacter
UnterminatedStringLiteral
InvalidGlobalDecl
InvalidExternDecl
InvalidRodataDecl
InvalidEquDecl
InvalidDirective
InvalidInstruction
UnexpectedToken
UnmatchedParen
OutOfRangeLiteral
InvalidRODataDirective
UndefinedLabel
DuplicateLabel
BytecodeError
Implementations§
Trait Implementations§
Source§impl Debug for CompileError
impl Debug for CompileError
Source§impl Display for CompileError
impl Display for CompileError
Source§impl Error for CompileError
impl Error for CompileError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for CompileError
impl RefUnwindSafe for CompileError
impl Send for CompileError
impl Sync for CompileError
impl Unpin for CompileError
impl UnwindSafe for CompileError
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