pub enum Operand {
}Expand description
A decoded operand.
Offsets within a function are measured from the start of the function’s method header, which is how the VM’s own tables express them.
Variants§
Unsigned(u32)
An unsigned number.
Signed(i32)
A signed number.
Argc(u16)
An argument count.
Local(u16)
A local variable number.
Arg(u16)
A parameter number.
String(u32)
A constant pool offset of a string.
List(u32)
A constant pool offset of a list.
Object(u32)
An object ID.
Property(u16)
A property ID.
Function(u32)
A code pool offset of a function.
Enum(u32)
An enumerator ID.
Branch(i64)
A branch target, as an offset within the function. A target before the start of the function, which no valid code has, is negative.
Table(u32)
The offset within the function of a named argument table.
Metaclass(u16)
An index into the image’s metaclass dependency list.
FunctionSet(u16)
An index into the image’s function set dependency list.
FunctionIndex(u16)
The index of a function within its function set.
Trait Implementations§
impl Copy for Operand
impl Eq for Operand
impl StructuralPartialEq for Operand
Auto Trait Implementations§
impl Forget for Operand
impl Freeze for Operand
impl Move for Operand
impl RefUnwindSafe for Operand
impl Send for Operand
impl Sync for Operand
impl Unpin for Operand
impl UnsafeUnpin for Operand
impl UnwindSafe for Operand
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