pub enum CompileError {
Show 19 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>,
},
ParseError {
error: String,
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>,
},
MissingTextDirective {
span: Range<usize>,
custom_label: Option<String>,
},
}Variants§
InvalidNumber
InvalidRegister
UnexpectedCharacter
UnterminatedStringLiteral
InvalidGlobalDecl
InvalidExternDecl
InvalidRodataDecl
InvalidEquDecl
InvalidDirective
InvalidInstruction
UnexpectedToken
UnmatchedParen
ParseError
OutOfRangeLiteral
InvalidRODataDirective
UndefinedLabel
DuplicateLabel
BytecodeError
MissingTextDirective
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more