pub struct VM {
pub last: Option<(Rc<Value>, Position)>,
/* private fields */
}Fields§
§last: Option<(Rc<Value>, Position)>Implementations§
Source§impl VM
impl VM
pub fn new<P: Into<PathBuf>>( strict: bool, ops: Rc<OpsMap>, working_dir: P, ) -> Self
pub fn with_pointer<P: Into<PathBuf>>( strict: bool, ops: OpPointer, working_dir: P, ) -> Self
pub fn set_path(&mut self, path: PathBuf)
pub fn to_new_pointer(self, ops: OpPointer) -> Self
pub fn with_import_stack(self, imports: Vec<Rc<str>>) -> Self
pub fn enable_validate_mode(&mut self)
pub fn clean_copy(&self) -> Self
pub fn to_scoped(self, symbols: Stack) -> Self
pub fn symbols_to_tuple(&self, include_mod: bool) -> Value
pub fn remove_symbol(&mut self, sym: &str) -> Option<(Rc<Value>, Position)>
pub fn run<'a, O, E>( &mut self, env: &'a RefCell<Environment<O, E>>, ) -> Result<(), Error>
pub fn fcall_impl<'a, O, E>( f: &Func, strict: bool, stack: &mut Vec<(Rc<Value>, Position)>, env: &'a RefCell<Environment<O, E>>, import_stack: &Vec<Rc<str>>, ) -> Result<(Rc<Value>, Position), Error>
pub fn binding_push( &mut self, name: Rc<str>, val: Rc<Value>, strict: bool, pos: &Position, name_pos: &Position, ) -> Result<(), Error>
pub fn get_binding<O, E>( &self, name: &str, env: &RefCell<Environment<O, E>>, pos: &Position, ) -> Result<(Rc<Value>, Position), Error>
pub fn pop(&mut self) -> Result<(Rc<Value>, Position), Error>
Auto Trait Implementations§
impl Freeze for VM
impl RefUnwindSafe for VM
impl !Send for VM
impl !Sync for VM
impl Unpin for VM
impl UnsafeUnpin for VM
impl UnwindSafe for VM
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