[−][src]Enum pir_8_emu::binutils::pir_8_as::AssemblerDirectiveObeyError
An error that could've occurred when obeying an asembly directive.
Examples
let mut next_output_address = Some(0x0110); let mut labels = vec![("uwu".to_string(), 0x0069)].into_iter().collect(); assert_eq!(AssemblerDirective::SetOrigin(0x0420).obey(&mut next_output_address, &mut labels), Err(AssemblerDirectiveObeyError::OutputAddressAlreadySet(0x0110, 0x0420))); assert_eq!(AssemblerDirective::SaveLabel("uwu").obey(&mut next_output_address, &mut labels), Err(AssemblerDirectiveObeyError::LabelNameTaken("uwu")));
Variants
LabelNameTaken(&'s str)
The label wit hthe specified name already exists
An origin was attempted to be specified with the output address already existing
First argument is the current output address, the second – the requested
Trait Implementations
impl<'s> Clone for AssemblerDirectiveObeyError<'s>
[src]
fn clone(&self) -> AssemblerDirectiveObeyError<'s>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'s> Copy for AssemblerDirectiveObeyError<'s>
[src]
impl<'s> Debug for AssemblerDirectiveObeyError<'s>
[src]
impl<'_> Display for AssemblerDirectiveObeyError<'_>
[src]
impl<'s> Eq for AssemblerDirectiveObeyError<'s>
[src]
impl<'_> Error for AssemblerDirectiveObeyError<'_>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<'s> Hash for AssemblerDirectiveObeyError<'s>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'s> Ord for AssemblerDirectiveObeyError<'s>
[src]
fn cmp(&self, other: &AssemblerDirectiveObeyError<'s>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<'s> PartialEq<AssemblerDirectiveObeyError<'s>> for AssemblerDirectiveObeyError<'s>
[src]
fn eq(&self, other: &AssemblerDirectiveObeyError<'s>) -> bool
[src]
fn ne(&self, other: &AssemblerDirectiveObeyError<'s>) -> bool
[src]
impl<'s> PartialOrd<AssemblerDirectiveObeyError<'s>> for AssemblerDirectiveObeyError<'s>
[src]
fn partial_cmp(
&self,
other: &AssemblerDirectiveObeyError<'s>
) -> Option<Ordering>
[src]
&self,
other: &AssemblerDirectiveObeyError<'s>
) -> Option<Ordering>
fn lt(&self, other: &AssemblerDirectiveObeyError<'s>) -> bool
[src]
fn le(&self, other: &AssemblerDirectiveObeyError<'s>) -> bool
[src]
fn gt(&self, other: &AssemblerDirectiveObeyError<'s>) -> bool
[src]
fn ge(&self, other: &AssemblerDirectiveObeyError<'s>) -> bool
[src]
impl<'s> StructuralEq for AssemblerDirectiveObeyError<'s>
[src]
impl<'s> StructuralPartialEq for AssemblerDirectiveObeyError<'s>
[src]
Auto Trait Implementations
impl<'s> RefUnwindSafe for AssemblerDirectiveObeyError<'s>
impl<'s> Send for AssemblerDirectiveObeyError<'s>
impl<'s> Sync for AssemblerDirectiveObeyError<'s>
impl<'s> Unpin for AssemblerDirectiveObeyError<'s>
impl<'s> UnwindSafe for AssemblerDirectiveObeyError<'s>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,