pub enum ParseProgramError {
InvalidLabel,
UndefinedLabel(String),
DuplicateLabel(String),
InvalidOpcode(String),
InvalidExpression(String),
InvalidRegister(String),
MissingOperand(String),
TooManyOperands(String),
}Expand description
An error that can be returned while parsing a TIS-100 assembly program.
Variants§
InvalidLabel
UndefinedLabel(String)
DuplicateLabel(String)
InvalidOpcode(String)
InvalidExpression(String)
InvalidRegister(String)
MissingOperand(String)
TooManyOperands(String)
Trait Implementations§
Source§impl Debug for ParseProgramError
impl Debug for ParseProgramError
Source§impl Display for ParseProgramError
impl Display for ParseProgramError
Source§impl PartialEq for ParseProgramError
impl PartialEq for ParseProgramError
impl StructuralPartialEq for ParseProgramError
Auto Trait Implementations§
impl Freeze for ParseProgramError
impl RefUnwindSafe for ParseProgramError
impl Send for ParseProgramError
impl Sync for ParseProgramError
impl Unpin for ParseProgramError
impl UnwindSafe for ParseProgramError
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