pub enum InstructionOperand {
Immediate(i32),
Local(u16),
Constant(u16),
Branch(i32),
TableLow(i32),
TableHigh(i32),
LookupKey(i32),
Count(u8),
Dimensions(u8),
ArrayType(u8),
}Expand description
One decoded operand, retaining its semantic role from the opcode manifest.
Variants§
Immediate(i32)
A signed immediate value.
Local(u16)
A local-variable index.
Constant(u16)
A constant-pool index.
Branch(i32)
A relative branch displacement.
TableLow(i32)
The lowest key accepted by a tableswitch.
TableHigh(i32)
The highest key accepted by a tableswitch.
LookupKey(i32)
One key in a lookupswitch, followed by its branch operand.
Count(u8)
The invokeinterface argument count.
Dimensions(u8)
The multianewarray dimension count.
ArrayType(u8)
The primitive array type discriminator.
Trait Implementations§
Source§impl Clone for InstructionOperand
impl Clone for InstructionOperand
Source§fn clone(&self) -> InstructionOperand
fn clone(&self) -> InstructionOperand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InstructionOperand
Source§impl Debug for InstructionOperand
impl Debug for InstructionOperand
impl Eq for InstructionOperand
Source§impl PartialEq for InstructionOperand
impl PartialEq for InstructionOperand
impl StructuralPartialEq for InstructionOperand
Auto Trait Implementations§
impl Freeze for InstructionOperand
impl RefUnwindSafe for InstructionOperand
impl Send for InstructionOperand
impl Sync for InstructionOperand
impl Unpin for InstructionOperand
impl UnsafeUnpin for InstructionOperand
impl UnwindSafe for InstructionOperand
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