Enum lc3_ensemble::asm::AsmErrKind
source · pub enum AsmErrKind {
UndetAddrLabel,
UndetAddrStmt,
UnclosedOrig,
UnopenedOrig,
OverlappingOrig,
OverlappingLabels,
OverlappingBlocks,
OffsetNewErr(OffsetNewErr),
CouldNotFindLabel,
ExcessiveBlock,
}Expand description
Kinds of errors that can occur from assembling given assembly code.
Error with span information is AsmErr.
Variants§
UndetAddrLabel
Cannot determine address of label (pass 1).
UndetAddrStmt
Cannot determine address of instruction (pass 2).
UnclosedOrig
There was an .orig but no corresponding .end (pass 1).
UnopenedOrig
There was an .end but no corresonding .orig (pass 1).
OverlappingOrig
There was an .orig opened after another .orig (pass 1).
OverlappingLabels
There were multiple labels of the same name (pass 1).
OverlappingBlocks
There are blocks that overlap ranges of memory (pass 2).
OffsetNewErr(OffsetNewErr)
Creating the offset to replace a label caused overflow (pass 2).
CouldNotFindLabel
Label did not have an assigned address (pass 2).
ExcessiveBlock
Block is way too large (pass 2).
Trait Implementations§
source§impl Clone for AsmErrKind
impl Clone for AsmErrKind
source§fn clone(&self) -> AsmErrKind
fn clone(&self) -> AsmErrKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AsmErrKind
impl Debug for AsmErrKind
source§impl Display for AsmErrKind
impl Display for AsmErrKind
source§impl Hash for AsmErrKind
impl Hash for AsmErrKind
source§impl PartialEq for AsmErrKind
impl PartialEq for AsmErrKind
source§fn eq(&self, other: &AsmErrKind) -> bool
fn eq(&self, other: &AsmErrKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for AsmErrKind
impl Eq for AsmErrKind
impl StructuralPartialEq for AsmErrKind
Auto Trait Implementations§
impl Freeze for AsmErrKind
impl RefUnwindSafe for AsmErrKind
impl Send for AsmErrKind
impl Sync for AsmErrKind
impl Unpin for AsmErrKind
impl UnwindSafe for AsmErrKind
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