pub enum AssemblerError<L> {
Overflow,
UndefinedLabel(L),
DuplicateLabel(L),
InsufficientAlignment {
label: L,
offset: i32,
shift: u8,
},
}
Expand description
Errors that can occur during assembly.
Variants§
Overflow
Assembly would overflow Glulx’s 4 GiB address space.
UndefinedLabel(L)
An operand referenced a label which was not defined.
DuplicateLabel(L)
A label was defined in multiple places.
InsufficientAlignment
A label was right-shifted beyond its alignment.
Trait Implementations§
Source§impl<L: Clone> Clone for AssemblerError<L>
impl<L: Clone> Clone for AssemblerError<L>
Source§fn clone(&self) -> AssemblerError<L>
fn clone(&self) -> AssemblerError<L>
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<L: Debug> Debug for AssemblerError<L>
impl<L: Debug> Debug for AssemblerError<L>
Source§impl<L> Display for AssemblerError<L>where
L: Display,
impl<L> Display for AssemblerError<L>where
L: Display,
Source§impl<L> Error for AssemblerError<L>
impl<L> Error for AssemblerError<L>
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()
impl<L: Copy> Copy for AssemblerError<L>
Auto Trait Implementations§
impl<L> Freeze for AssemblerError<L>where
L: Freeze,
impl<L> RefUnwindSafe for AssemblerError<L>where
L: RefUnwindSafe,
impl<L> Send for AssemblerError<L>where
L: Send,
impl<L> Sync for AssemblerError<L>where
L: Sync,
impl<L> Unpin for AssemblerError<L>where
L: Unpin,
impl<L> UnwindSafe for AssemblerError<L>where
L: UnwindSafe,
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