pub enum AssemblerFailure {
InternalError(String),
BadTapeBlock {
address: Address,
length: usize,
msg: String,
},
Io(IoFailed),
BadProgram(OneOrMore<WithLocation<ProgramError>>),
MachineLimitExceeded(MachineLimitExceededFailure),
}
Expand description
A failure to read the source and emit a binary.
This includes incorrect program input, but also other causes too.
Variants§
InternalError(String)
We encountered a bug in the assembler.
BadTapeBlock
A program block is too large to be represented in the output format (and hence in any case is too large to be loaded into the TX-2 machine).
Io(IoFailed)
A failure to read or write data.
BadProgram(OneOrMore<WithLocation<ProgramError>>)
A syntax or semantic error in the program source.
MachineLimitExceeded(MachineLimitExceededFailure)
The input program exceeds a machine limit.
Trait Implementations§
Source§impl Debug for AssemblerFailure
impl Debug for AssemblerFailure
Source§impl Display for AssemblerFailure
impl Display for AssemblerFailure
Source§impl PartialEq for AssemblerFailure
impl PartialEq for AssemblerFailure
impl Eq for AssemblerFailure
impl StructuralPartialEq for AssemblerFailure
Auto Trait Implementations§
impl Freeze for AssemblerFailure
impl !RefUnwindSafe for AssemblerFailure
impl Send for AssemblerFailure
impl Sync for AssemblerFailure
impl Unpin for AssemblerFailure
impl !UnwindSafe for AssemblerFailure
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.