pub struct Compiler<'a> { /* private fields */ }
Implementations
sourceimpl<'a> Compiler<'a>
impl<'a> Compiler<'a>
pub fn new(
globals: &'a (dyn CompilerEnv + 'a),
vm: &'a GlobalVmState,
symbols: SymbolModule<'a>,
source: &'a FileMap,
source_name: String,
emit_debug_info: bool
) -> Compiler<'a>
sourcepub fn compile_expr(&mut self, expr: CExpr<'_>) -> Result<CompiledModule>
pub fn compile_expr(&mut self, expr: CExpr<'_>) -> Result<CompiledModule>
Compiles an expression to a zero argument function which can be directly fed to the interpreter
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Compiler<'a>
impl<'a> !Send for Compiler<'a>
impl<'a> !Sync for Compiler<'a>
impl<'a> Unpin for Compiler<'a>
impl<'a> !UnwindSafe for Compiler<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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