pub enum CompilerError {
Isa(IsaSegError),
RoutineMissed(String),
RoutineEmpty(String),
InstrRead(u16),
InstrChanged(u16, &'static str, Instr),
CallTable(CallTableError),
FloatConstruction(u128, u128, u16, ParseError),
}
Variants§
Isa(IsaSegError)
Errors related to ISA segment
RoutineMissed(String)
routine {0}
is absent in the list of routines
RoutineEmpty(String)
routine {0}
contains no instructions
InstrRead(u16)
unable to read instruction at position {0}
InstrChanged(u16, &'static str, Instr)
instruction at position {0} has changed from {1}
into {2}
CallTable(CallTableError)
Call table error
FloatConstruction(u128, u128, u16, ParseError)
unable to construct float representation of literal {0}.{1}e{2}
details: {3:?}
Implementations§
Source§impl CompilerError
impl CompilerError
Trait Implementations§
Source§impl Clone for CompilerError
impl Clone for CompilerError
Source§fn clone(&self) -> CompilerError
fn clone(&self) -> CompilerError
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 Debug for CompilerError
impl Debug for CompilerError
Source§impl Display for CompilerError
impl Display for CompilerError
Source§impl Error for CompilerError
impl Error for CompilerError
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 From<CallTableError> for CompilerError
impl From<CallTableError> for CompilerError
Source§fn from(v: CallTableError) -> Self
fn from(v: CallTableError) -> Self
Converts to this type from the input type.
Source§impl From<CompilerError> for MainError
impl From<CompilerError> for MainError
Source§fn from(err: CompilerError) -> Self
fn from(err: CompilerError) -> Self
Converts to this type from the input type.
Source§impl From<CompilerError> for String
impl From<CompilerError> for String
Source§fn from(err: CompilerError) -> Self
fn from(err: CompilerError) -> Self
Converts to this type from the input type.
Source§impl From<IsaSegError> for CompilerError
impl From<IsaSegError> for CompilerError
Source§fn from(v: IsaSegError) -> Self
fn from(v: IsaSegError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CompilerError
impl PartialEq for CompilerError
impl Eq for CompilerError
impl StructuralPartialEq for CompilerError
Auto Trait Implementations§
impl Freeze for CompilerError
impl RefUnwindSafe for CompilerError
impl Send for CompilerError
impl Sync for CompilerError
impl Unpin for CompilerError
impl UnwindSafe for CompilerError
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