pub enum InstructionParseError {
LabelNotFound(String),
InvalidKeyword(String),
OperandParseError(OperandParseError),
UnexpectedArgument(String),
}Variants§
LabelNotFound(String)
InvalidKeyword(String)
OperandParseError(OperandParseError)
UnexpectedArgument(String)
Trait Implementations§
source§impl Debug for InstructionParseError
impl Debug for InstructionParseError
source§impl Display for InstructionParseError
impl Display for InstructionParseError
source§impl Error for InstructionParseError
impl Error for InstructionParseError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<InstructionParseError> for ParserError
impl From<InstructionParseError> for ParserError
source§fn from(source: InstructionParseError) -> Self
fn from(source: InstructionParseError) -> Self
Converts to this type from the input type.
source§impl From<OperandParseError> for InstructionParseError
impl From<OperandParseError> for InstructionParseError
source§fn from(source: OperandParseError) -> Self
fn from(source: OperandParseError) -> Self
Converts to this type from the input type.
source§impl PartialEq for InstructionParseError
impl PartialEq for InstructionParseError
source§fn eq(&self, other: &InstructionParseError) -> bool
fn eq(&self, other: &InstructionParseError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for InstructionParseError
impl StructuralPartialEq for InstructionParseError
Auto Trait Implementations§
impl RefUnwindSafe for InstructionParseError
impl Send for InstructionParseError
impl Sync for InstructionParseError
impl Unpin for InstructionParseError
impl UnwindSafe for InstructionParseError
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