pub struct Chunk {
pub code: Vec<u8>,
pub consts: Vec<Value>,
pub spans: Vec<(u32, Span)>,
pub max_stack: u16,
pub n_locals: u16,
pub exception_table: Vec<ExceptionEntry>,
}Expand description
A compiled code object (bytecode + metadata).
Fields§
§code: Vec<u8>§consts: Vec<Value>§spans: Vec<(u32, Span)>§max_stack: u16§n_locals: u16§exception_table: Vec<ExceptionEntry>Implementations§
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