pub struct Chunk {
pub bytes: Vec<u8>,
pub constants: ConstantPool,
pub path: Option<KString>,
pub debug_info: DebugInfo,
}Expand description
A compiled chunk of bytecode, along with its associated constants and metadata
Fields§
§bytes: Vec<u8>The bytes representing the chunk’s bytecode
constants: ConstantPoolThe constant data associated with the chunk’s bytecode
path: Option<KString>The path of the program’s source file
debug_info: DebugInfoDebug information associated with the chunk’s bytecode
Implementations§
Trait Implementations§
impl StructuralPartialEq for Chunk
Auto Trait Implementations§
impl Freeze for Chunk
impl RefUnwindSafe for Chunk
impl !Send for Chunk
impl !Sync for Chunk
impl Unpin 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