pub enum AsmError {
String(DecodeStringError),
Numeric(DecodeNumericError),
UnexpectedChar {
character: char,
offset: usize,
},
Unexpected(Token),
UnexpectedEof(String),
LabelAlreadyUsed {
label: Symbol,
range: Range<usize>,
},
UnknownInstruction(Token),
UnknownArgument(Token),
InvalidArgumentCount(Token),
UnknownIntrinsic(Token),
}
Variants§
String(DecodeStringError)
Numeric(DecodeNumericError)
UnexpectedChar
Unexpected(Token)
UnexpectedEof(String)
LabelAlreadyUsed
UnknownInstruction(Token)
UnknownArgument(Token)
InvalidArgumentCount(Token)
UnknownIntrinsic(Token)
Trait Implementations§
source§impl Error for AsmError
impl Error for AsmError
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<DecodeNumericError> for AsmError
impl From<DecodeNumericError> for AsmError
source§fn from(err: DecodeNumericError) -> Self
fn from(err: DecodeNumericError) -> Self
Converts to this type from the input type.
source§impl From<DecodeStringError> for AsmError
impl From<DecodeStringError> for AsmError
source§fn from(err: DecodeStringError) -> Self
fn from(err: DecodeStringError) -> Self
Converts to this type from the input type.