pub enum AsmError {
Show 18 variants
UndefinedVariable(Span),
RedefinedVariable(Span),
InvalidStatement(Span),
UnknownOpcode {
name: Box<str>,
span: Span,
},
UnalignedCont {
bits: u16,
span: Span,
},
ArgTypeMismatch {
span: Span,
found: ArgType,
expected: ExpectedArgType,
},
InvalidRegister(Span),
InvalidJumpTableKey(Span),
InvalidJumpTableValue(Span),
DuplicateJumpTableEntry(Span),
TooBigInteger(Span),
EmptyJumpTable(Span),
TooManyArgs(Span),
NotEnoughArgs(Span),
OutOfRange(Span),
WrongUsage {
details: &'static str,
span: Span,
},
StoreError {
inner: Error,
span: Span,
},
Multiple(Box<[AsmError]>),
}Variants§
UndefinedVariable(Span)
RedefinedVariable(Span)
InvalidStatement(Span)
UnknownOpcode
UnalignedCont
ArgTypeMismatch
InvalidRegister(Span)
InvalidJumpTableKey(Span)
InvalidJumpTableValue(Span)
DuplicateJumpTableEntry(Span)
TooBigInteger(Span)
EmptyJumpTable(Span)
TooManyArgs(Span)
NotEnoughArgs(Span)
OutOfRange(Span)
WrongUsage
StoreError
Multiple(Box<[AsmError]>)
Implementations§
Trait Implementations§
Source§impl Error for AsmError
impl Error for AsmError
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()
Auto Trait Implementations§
impl Freeze for AsmError
impl RefUnwindSafe for AsmError
impl Send for AsmError
impl Sync for AsmError
impl Unpin for AsmError
impl UnsafeUnpin for AsmError
impl UnwindSafe for AsmError
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more