pub struct CompiledScript {Show 15 fields
pub name: String,
pub id: i32,
pub trigger: String,
pub source_path: String,
pub lookup_key: i32,
pub param_types: Vec<Type>,
pub instructions: Vec<Instruction>,
pub local_table: LocalTable,
pub int_local_count: u16,
pub string_local_count: u16,
pub long_local_count: u16,
pub int_arg_count: u16,
pub string_arg_count: u16,
pub long_arg_count: u16,
pub switch_tables: Vec<Vec<(i32, usize)>>,
}Expand description
Compiled bytecode for a single script.
Fields§
§name: String§id: i32§trigger: String§source_path: String§lookup_key: i32Lookup key for fast engine dispatch (-1 if not applicable).
param_types: Vec<Type>§instructions: Vec<Instruction>§local_table: LocalTable§int_local_count: u16§string_local_count: u16§long_local_count: u16§int_arg_count: u16§string_arg_count: u16§long_arg_count: u16§switch_tables: Vec<Vec<(i32, usize)>>Implementations§
Trait Implementations§
Source§impl Clone for CompiledScript
impl Clone for CompiledScript
Source§fn clone(&self) -> CompiledScript
fn clone(&self) -> CompiledScript
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 moreAuto Trait Implementations§
impl Freeze for CompiledScript
impl RefUnwindSafe for CompiledScript
impl Send for CompiledScript
impl Sync for CompiledScript
impl Unpin for CompiledScript
impl UnsafeUnpin for CompiledScript
impl UnwindSafe for CompiledScript
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