pub enum CompilerError<Isa>where
Isa: Instruction<LibId>,{
Assemble(AssemblerError),
InvalidRef(Isa, usize, u16, Vec<u16>),
InvalidLib(Isa, usize, u16, LibId),
}Expand description
Errors generated during the library compilation.
Variants§
Assemble(AssemblerError)
Error in assembling the bytecode (see AssemblerError for the details).
InvalidRef(Isa, usize, u16, Vec<u16>)
instruction number {1} {0} (offset {2:#x}) references goto target absent in the code. Use
nop instruction to mark the goto target.
The known goto target offsets are: {3:#x?}
InvalidLib(Isa, usize, u16, LibId)
instruction number {1} {0} (offset {2:#x}) references library which is not a dependency
(lib id {3}).
Trait Implementations§
Source§impl<Isa> Clone for CompilerError<Isa>
impl<Isa> Clone for CompilerError<Isa>
Source§fn clone(&self) -> CompilerError<Isa>
fn clone(&self) -> CompilerError<Isa>
Returns a duplicate 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<Isa> Debug for CompilerError<Isa>
impl<Isa> Debug for CompilerError<Isa>
Source§impl<Isa> Display for CompilerError<Isa>where
Isa: Instruction<LibId>,
impl<Isa> Display for CompilerError<Isa>where
Isa: Instruction<LibId>,
Source§impl<Isa> Error for CompilerError<Isa>where
Isa: Instruction<LibId>,
impl<Isa> Error for CompilerError<Isa>where
Isa: Instruction<LibId>,
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()
Source§impl<Isa> From<AssemblerError> for CompilerError<Isa>where
Isa: Instruction<LibId>,
impl<Isa> From<AssemblerError> for CompilerError<Isa>where
Isa: Instruction<LibId>,
Source§fn from(v: AssemblerError) -> CompilerError<Isa>
fn from(v: AssemblerError) -> CompilerError<Isa>
Converts to this type from the input type.
Source§impl<Isa> Hash for CompilerError<Isa>
impl<Isa> Hash for CompilerError<Isa>
Source§impl<Isa> PartialEq for CompilerError<Isa>
impl<Isa> PartialEq for CompilerError<Isa>
impl<Isa> Eq for CompilerError<Isa>
impl<Isa> StructuralPartialEq for CompilerError<Isa>where
Isa: Instruction<LibId>,
Auto Trait Implementations§
impl<Isa> Freeze for CompilerError<Isa>where
Isa: Freeze,
impl<Isa> RefUnwindSafe for CompilerError<Isa>where
Isa: RefUnwindSafe,
impl<Isa> Send for CompilerError<Isa>where
Isa: Send,
impl<Isa> Sync for CompilerError<Isa>where
Isa: Sync,
impl<Isa> Unpin for CompilerError<Isa>where
Isa: Unpin,
impl<Isa> UnwindSafe for CompilerError<Isa>where
Isa: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.