pub struct CortexInterpreter { /* private fields */ }
Implementations§
Source§impl CortexInterpreter
impl CortexInterpreter
pub fn new() -> Self
pub fn register_module( &mut self, path: &PathIdent, module: Module, ) -> Result<(), CortexError>
pub fn run_top_level(&mut self, top_level: TopLevel) -> Result<(), CortexError>
pub fn run_statement( &mut self, statement: &Statement, ) -> Result<(), CortexError>
pub fn determine_type( &self, expr: &Expression, ) -> Result<CortexType, CortexError>
pub fn evaluate_expression( &mut self, expr: &Expression, ) -> Result<CortexValue, CortexError>
pub fn call_function( &mut self, func: &Rc<Function>, args: Vec<CortexValue>, ) -> Result<CortexValue, CortexError>
Auto Trait Implementations§
impl Freeze for CortexInterpreter
impl !RefUnwindSafe for CortexInterpreter
impl !Send for CortexInterpreter
impl !Sync for CortexInterpreter
impl Unpin for CortexInterpreter
impl !UnwindSafe for CortexInterpreter
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