pub struct Compiler { /* private fields */ }Implementations§
Source§impl Compiler
impl Compiler
pub fn new() -> Self
pub fn set_source(&mut self, source: String)
pub fn add_function_debug(&mut self, func: &FunctionDecl)
pub fn add_local_debug( &mut self, name: String, index: LocalSlot, declared_line: Option<u32>, last_line: Option<u32>, ) -> Result<(), CompileError>
pub fn set_function_impls(&mut self, function_impls: HashMap<u16, FunctionImpl>)
pub fn set_function_decls(&mut self, function_decls: HashMap<u16, FunctionDecl>)
pub fn set_struct_schemas( &mut self, struct_schemas: HashMap<String, StructDecl>, )
pub fn set_call_index_remap(&mut self, call_index_remap: HashMap<u16, u16>)
pub fn set_enable_local_move_semantics( &mut self, enable_local_move_semantics: bool, )
pub fn compile_program(self, stmts: &[Stmt]) -> Result<Program, CompileError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Compiler
impl RefUnwindSafe for Compiler
impl Send for Compiler
impl Sync for Compiler
impl Unpin for Compiler
impl UnsafeUnpin for Compiler
impl UnwindSafe for Compiler
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