pub enum Operand {
None,
Int(i32),
Long(i64),
Str(String),
JumpTarget(usize),
SwitchTable(Vec<(i32, usize)>),
StringCount(u32),
ArrayDef(i32, u8),
}Expand description
The operand (data) associated with an instruction.
Variants§
None
Int(i32)
Long(i64)
Str(String)
JumpTarget(usize)
Jump target as instruction index within the script
SwitchTable(Vec<(i32, usize)>)
Switch table: list of (case_value, jump_target) pairs
StringCount(u32)
String join with N parts
ArrayDef(i32, u8)
Array definition: (var_id, element_type_char)
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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