pub enum AssemblerError {
Show 16 variants
LabelReferenceError(Box<LabelReferenceErrorData>),
ExpectedIdentifierError {
path: String,
line: usize,
position: usize,
after_token: String,
found: char,
source_line: String,
},
FileReadError {
path: String,
message: String,
},
SyntaxError {
path: String,
line: usize,
position: usize,
message: String,
source_line: String,
},
UnknownOpcode {
opcode: String,
},
InvalidNumber {
value: String,
},
Utf8Error {
path: String,
line: usize,
position: usize,
message: String,
source_line: String,
},
UndefinedLabel {
label: String,
},
DuplicateLabel {
label: String,
},
InvalidAddressing,
RomTooLarge {
size: usize,
},
InvalidPadding {
address: u16,
},
Io(Error),
Internal {
message: String,
},
Backend {
message: String,
},
Disassembly {
message: String,
},
}Variants§
LabelReferenceError(Box<LabelReferenceErrorData>)
ExpectedIdentifierError
FileReadError
SyntaxError
UnknownOpcode
InvalidNumber
Utf8Error
UndefinedLabel
DuplicateLabel
InvalidAddressing
RomTooLarge
InvalidPadding
Io(Error)
Internal
Backend
Disassembly
Trait Implementations§
Source§impl Debug for AssemblerError
impl Debug for AssemblerError
Source§impl Display for AssemblerError
impl Display for AssemblerError
Source§impl Error for AssemblerError
impl Error for AssemblerError
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 !RefUnwindSafe for AssemblerError
impl !UnwindSafe for AssemblerError
impl Freeze for AssemblerError
impl Send for AssemblerError
impl Sync for AssemblerError
impl Unpin for AssemblerError
impl UnsafeUnpin for AssemblerError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.