pub struct Chunk {
pub name: String,
pub instructions: Vec<Instruction>,
pub constants: Vec<Value>,
pub sub_chunks: Vec<Arc<Chunk>>,
pub param_count: u8,
pub is_vararg: bool,
}Expand description
A compiled function ready for the VM.
Fields§
§name: String§instructions: Vec<Instruction>§constants: Vec<Value>§sub_chunks: Vec<Arc<Chunk>>§param_count: u8§is_vararg: boolTrait 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