[][src]Enum pir_8_emu::micro::MicroOpPerformError

pub enum MicroOpPerformError {
    MicrostackUnderflow,
    InvalidMicrostackTop(u8&'static [u8]),
}

An error that could've occurred when performing a μOp.

Examples

assert_eq!(MicroOp::StackPush.perform(&mut vec![], &mut memory, &mut ports, &mut registers,
                                      &mut pc, &mut sp, &mut adr, &mut ins),
           Err(MicroOpPerformError::MicrostackUnderflow));

Variants

MicrostackUnderflow

The microstack had too few elements for the μOp being performed

InvalidMicrostackTop(u8&'static [u8])

The top of the microstack had a value outside the domain of the μOp being performed

Trait Implementations

impl Clone for MicroOpPerformError[src]

impl Copy for MicroOpPerformError[src]

impl Debug for MicroOpPerformError[src]

impl Display for MicroOpPerformError[src]

impl Eq for MicroOpPerformError[src]

impl Error for MicroOpPerformError[src]

impl Hash for MicroOpPerformError[src]

impl Ord for MicroOpPerformError[src]

impl PartialEq<MicroOpPerformError> for MicroOpPerformError[src]

impl PartialOrd<MicroOpPerformError> for MicroOpPerformError[src]

impl StructuralEq for MicroOpPerformError[src]

impl StructuralPartialEq for MicroOpPerformError[src]

Auto Trait Implementations

impl RefUnwindSafe for MicroOpPerformError

impl Send for MicroOpPerformError

impl Sync for MicroOpPerformError

impl Unpin for MicroOpPerformError

impl UnwindSafe for MicroOpPerformError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.