pub enum ManagedInstruction {
CallMethod {
target: String,
method: String,
signature: GaiaSignature,
is_virtual: bool,
call_site_id: Option<u32>,
},
CallStatic {
target: String,
method: String,
signature: GaiaSignature,
},
Box(GaiaType),
Unbox(GaiaType),
InstanceOf(GaiaType),
CheckCast(GaiaType),
Initiate(usize),
Finalize,
}Expand description
Tier 1: Managed runtime instructions (JVM/CLR/Lua-like)
Variants§
CallMethod
Call an instance method on an object.
Fields
§
signature: GaiaSignatureThe signature of the method.
CallStatic
Call a static method.
Fields
§
signature: GaiaSignatureThe signature of the method.
Box(GaiaType)
Box a value type into a reference type.
Unbox(GaiaType)
Unbox a reference type back to a value type.
InstanceOf(GaiaType)
Runtime type checking (is instance of).
CheckCast(GaiaType)
Type casting with runtime check.
Initiate(usize)
Initialize an object with the given parameter count.
Finalize
Finalize an object (call destructor).
Trait Implementations§
Source§impl Clone for ManagedInstruction
impl Clone for ManagedInstruction
Source§fn clone(&self) -> ManagedInstruction
fn clone(&self) -> ManagedInstruction
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 ManagedInstruction
impl Debug for ManagedInstruction
Source§impl<'de> Deserialize<'de> for ManagedInstruction
impl<'de> Deserialize<'de> for ManagedInstruction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ManagedInstruction
impl PartialEq for ManagedInstruction
Source§impl Serialize for ManagedInstruction
impl Serialize for ManagedInstruction
impl StructuralPartialEq for ManagedInstruction
Auto Trait Implementations§
impl Freeze for ManagedInstruction
impl RefUnwindSafe for ManagedInstruction
impl Send for ManagedInstruction
impl Sync for ManagedInstruction
impl Unpin for ManagedInstruction
impl UnsafeUnpin for ManagedInstruction
impl UnwindSafe for ManagedInstruction
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