pub struct Compiler;Implementations§
Source§impl Compiler
impl Compiler
pub fn compile(expr: &Expr, source: &str) -> Program
pub fn compile_str(input: &str) -> Result<Program, EvalError>
Sourcepub fn compile_str_with_config(
input: &str,
config: PassConfig,
) -> Result<Program, EvalError>
pub fn compile_str_with_config( input: &str, config: PassConfig, ) -> Result<Program, EvalError>
Compile with explicit pass configuration. Cached by callers
under (config.hash(), expr).
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