Struct koto_bytecode::Chunk [−][src]
pub struct Chunk {
pub bytes: Vec<u8>,
pub constants: ConstantPool,
pub string_constants_arc: Arc<str>,
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: Vec<u8>The bytes representing the chunk’s bytecode
constants: ConstantPoolThe constant data associated with the chunk’s bytecode
string_constants_arc: Arc<str>The constant string 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
Auto Trait Implementations
impl RefUnwindSafe for Chunk
impl UnwindSafe for Chunk
Blanket Implementations
Mutably borrows from an owned value. Read more