pub struct ChunkBuilder { /* private fields */ }
Implementations
sourceimpl ChunkBuilder
impl ChunkBuilder
pub fn new() -> Self
pub fn with_strings(strings: StringInterner) -> Self
pub fn new_chunk(&mut self, info: ChunkInfo) -> CompileResult<Chunk>
pub fn chunk(&self, chunk_id: Chunk) -> &ChunkBuf
pub fn chunk_mut(&mut self, chunk_id: Chunk) -> &mut ChunkBuf
pub fn get_or_insert_const(&mut self, value: Constant) -> CompileResult<ConstID>
pub fn get_or_insert_str(&mut self, string: &str) -> CompileResult<ConstID>
pub fn insert_function(&mut self, fun_proto: UnloadedFunction)
pub fn build(self) -> UnloadedProgram
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ChunkBuilder
impl Send for ChunkBuilder
impl Sync for ChunkBuilder
impl Unpin for ChunkBuilder
impl UnwindSafe for ChunkBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more