pub enum InstructionErrorKind {
Truncated,
InvalidOpcode,
Version,
ReservedByte,
ConstantPool,
IllegalWide,
VariableLayout,
InvalidTarget,
InvalidHandler,
WidthOverflow,
InvalidOperands,
Manifest,
}Expand description
Stable instruction decoding failure category.
Variants§
Truncated
An operand extends beyond the code array.
InvalidOpcode
The opcode is reserved or otherwise invalid in a classfile.
Version
The opcode is unavailable in the requested classfile version.
ReservedByte
A mandated reserved operand byte was nonzero.
ConstantPool
The constant-pool index has the wrong category or is unusable.
IllegalWide
A wide prefix modifies an opcode that cannot be widened.
VariableLayout
A variable layout is malformed or too large to represent safely.
InvalidTarget
A relative control-flow target is outside the code array or not an instruction boundary.
InvalidHandler
An exception handler range is empty, reversed, or not instruction-aligned.
WidthOverflow
An instruction cannot be represented by its manifest-declared operand width.
InvalidOperands
An instruction’s operands do not match its manifest-declared layout.
Manifest
Generated manifest metadata is internally inconsistent.
Trait Implementations§
Source§impl Clone for InstructionErrorKind
impl Clone for InstructionErrorKind
Source§fn clone(&self) -> InstructionErrorKind
fn clone(&self) -> InstructionErrorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more