pub enum EncodeError {
Show 21 variants
InvalidInstruction,
InvalidMnemonic,
InvalidOperandCombination,
UnsupportedInMode,
RegisterError,
ImmediateOutOfRange,
DisplacementOutOfRange,
InternalError,
MaskRegisterError,
ZeroingModeError,
RoundingModeError,
SaeError,
BroadcastError,
VexNotPossible,
EvexRequired,
MemoryOperandRequired,
RegisterOperandRequired,
InvalidScaleFactor,
RspAsIndexRegister,
BaseRequiresDisplacement,
NotEncodable,
}Expand description
Specific encode errors
Variants§
InvalidInstruction
Invalid instruction for encoding
InvalidMnemonic
Invalid mnemonic
InvalidOperandCombination
Invalid operand combination
UnsupportedInMode
Unsupported instruction in current mode
RegisterError
Register encoding error
ImmediateOutOfRange
Immediate value out of range
DisplacementOutOfRange
Displacement out of range
InternalError
Internal error (should not happen)
MaskRegisterError
AVX-512 mask register error
ZeroingModeError
AVX-512 zeroing mode error
RoundingModeError
AVX-512 rounding mode error
SaeError
AVX-512 SAE error
BroadcastError
AVX-512 broadcast error
VexNotPossible
VEX encoding not possible (need EVEX)
EvexRequired
EVEX encoding required
MemoryOperandRequired
Memory operand required but register provided
RegisterOperandRequired
Register operand required but memory provided
InvalidScaleFactor
Invalid scale factor (must be 1, 2, 4, or 8)
RspAsIndexRegister
RSP cannot be used as index register
BaseRequiresDisplacement
RBP/R13 as base requires displacement
NotEncodable
Instruction not encodable
Trait Implementations§
Source§impl Clone for EncodeError
impl Clone for EncodeError
Source§fn clone(&self) -> EncodeError
fn clone(&self) -> EncodeError
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 EncodeError
impl Debug for EncodeError
Source§impl Display for EncodeError
impl Display for EncodeError
Source§impl PartialEq for EncodeError
impl PartialEq for EncodeError
impl Copy for EncodeError
impl Eq for EncodeError
impl StructuralPartialEq for EncodeError
Auto Trait Implementations§
impl Freeze for EncodeError
impl RefUnwindSafe for EncodeError
impl Send for EncodeError
impl Sync for EncodeError
impl Unpin for EncodeError
impl UnsafeUnpin for EncodeError
impl UnwindSafe for EncodeError
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