pub enum DecodeError {
Show 21 variants
NoMoreData,
InvalidOpcode,
InvalidModRM,
InvalidSIB,
InvalidDisplacement,
InvalidImmediate,
InvalidPrefix,
InternalError,
UndefinedOpcode,
ReservedOpcode,
VexError,
EvexError,
XopError,
ThreeDNowError,
InvalidLockPrefix,
InvalidRepPrefix,
RexInLegacyMode,
TooLong,
InvalidRegister,
MissingModRM,
MissingSIB,
}Expand description
Specific decode errors
Variants§
NoMoreData
No more data to decode
InvalidOpcode
Invalid opcode
InvalidModRM
Invalid ModRM byte
InvalidSIB
Invalid SIB byte
InvalidDisplacement
Invalid displacement
InvalidImmediate
Invalid immediate value
InvalidPrefix
Invalid prefix combination
InternalError
Internal error (should not happen)
UndefinedOpcode
Undefined opcode (valid encoding but undefined instruction)
ReservedOpcode
Reserved opcode (reserved for future use)
VexError
VEX prefix error
EvexError
EVEX prefix error (AVX-512)
XopError
XOP prefix error
ThreeDNowError
3DNow! instruction error
InvalidLockPrefix
Lock prefix used with non-lockable instruction
InvalidRepPrefix
REP/REPE prefix used incorrectly
RexInLegacyMode
REX prefix in 16/32-bit mode
TooLong
Instruction too long (exceeds 15 bytes)
InvalidRegister
Invalid register encoding
MissingModRM
Missing mandatory ModRM byte
MissingSIB
Missing mandatory SIB byte
Trait Implementations§
Source§impl Clone for DecodeError
impl Clone for DecodeError
Source§fn clone(&self) -> DecodeError
fn clone(&self) -> DecodeError
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 Debug for DecodeError
impl Debug for DecodeError
Source§impl Display for DecodeError
impl Display for DecodeError
Source§impl PartialEq for DecodeError
impl PartialEq for DecodeError
impl Copy for DecodeError
impl Eq for DecodeError
impl StructuralPartialEq for DecodeError
Auto Trait Implementations§
impl Freeze for DecodeError
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnsafeUnpin for DecodeError
impl UnwindSafe for DecodeError
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