pub struct Chunk {Show 16 fields
pub code: Vec<Instruction>,
pub constants: Vec<LuaValue>,
pub locals: Vec<LocVar>,
pub upvalue_count: usize,
pub param_count: usize,
pub is_vararg: bool,
pub needs_vararg_table: bool,
pub use_hidden_vararg: bool,
pub max_stack_size: usize,
pub child_protos: Vec<Rc<Chunk>>,
pub upvalue_descs: Vec<UpvalueDesc>,
pub source_name: Option<String>,
pub line_info: Vec<u32>,
pub linedefined: usize,
pub lastlinedefined: usize,
pub proto_data_size: u32,
}Expand description
Compiled chunk (bytecode + metadata)
Fields§
§code: Vec<Instruction>§constants: Vec<LuaValue>§locals: Vec<LocVar>§upvalue_count: usize§param_count: usize§is_vararg: bool§needs_vararg_table: bool§max_stack_size: usize§child_protos: Vec<Rc<Chunk>>§upvalue_descs: Vec<UpvalueDesc>§source_name: Option<String>§line_info: Vec<u32>§linedefined: usize§lastlinedefined: usize§proto_data_size: u32Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Chunk
impl RefUnwindSafe for Chunk
impl !Send for Chunk
impl !Sync for Chunk
impl Unpin for Chunk
impl UnsafeUnpin for Chunk
impl UnwindSafe for Chunk
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