Struct koto_bytecode::Chunk
source · pub struct Chunk {
pub bytes: Box<[u8]>,
pub constants: ConstantPool,
pub source_path: Option<PathBuf>,
pub debug_info: DebugInfo,
}Expand description
A compiled chunk of bytecode, along with its associated constants and metadata
Fields§
§bytes: Box<[u8]>The bytes representing the chunk’s bytecode
constants: ConstantPoolThe constant data associated with the chunk’s bytecode
source_path: Option<PathBuf>The path of the program’s source file
debug_info: DebugInfoDebug information associated with the chunk’s bytecode
Implementations§
Trait Implementations§
source§impl PartialEq for Chunk
impl PartialEq for Chunk
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