Enum iced_x86::DecoderError[][src]

#[non_exhaustive]pub enum DecoderError {
    None,
    InvalidInstruction,
    NoMoreBytes,
}

Decoder error

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None

No error. The last decoded instruction is a valid instruction

InvalidInstruction

It’s an invalid instruction or an invalid encoding of an existing instruction (eg. some reserved bit is set/cleared)

NoMoreBytes

There’s not enough bytes left to decode the instruction

Implementations

impl DecoderError[src]

pub fn values(
) -> impl Iterator<Item = DecoderError> + ExactSizeIterator + FusedIterator
[src]

Iterates over all DecoderError enum values

Trait Implementations

impl Clone for DecoderError[src]

impl Copy for DecoderError[src]

impl Debug for DecoderError[src]

impl Default for DecoderError[src]

impl Eq for DecoderError[src]

impl Hash for DecoderError[src]

impl Ord for DecoderError[src]

impl PartialEq<DecoderError> for DecoderError[src]

impl PartialOrd<DecoderError> for DecoderError[src]

impl StructuralEq for DecoderError[src]

impl StructuralPartialEq for DecoderError[src]

impl TryFrom<usize> for DecoderError[src]

type Error = IcedError

The type returned in the event of a conversion error.

Auto Trait Implementations

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> 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, 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.