[−][src]Struct ucglib::build::opcode::VM
Fields
env: Rc<RefCell<Environment<O, E>>>last: Option<(Rc<Value>, Position)>Implementations
impl<'a, O, E> VM<O, E> where
O: Write + Clone,
E: Write + Clone, [src]
O: Write + Clone,
E: Write + Clone,
pub fn new<P: Into<PathBuf>>(
strict: bool,
ops: Rc<PositionMap>,
env: Rc<RefCell<Environment<O, E>>>,
working_dir: P
) -> Self[src]
strict: bool,
ops: Rc<PositionMap>,
env: Rc<RefCell<Environment<O, E>>>,
working_dir: P
) -> Self
pub fn with_pointer<P: Into<PathBuf>>(
strict: bool,
ops: OpPointer,
env: Rc<RefCell<Environment<O, E>>>,
working_dir: P
) -> Self[src]
strict: bool,
ops: OpPointer,
env: Rc<RefCell<Environment<O, E>>>,
working_dir: P
) -> Self
pub fn set_path(&mut self, path: PathBuf)[src]
pub fn to_new_pointer(self, ops: OpPointer) -> Self[src]
pub fn with_import_stack(self, imports: Vec<String>) -> Self[src]
pub fn enable_validate_mode(&mut self)[src]
pub fn clean_copy(&self) -> Self[src]
pub fn to_scoped(self, symbols: Stack) -> Self[src]
pub fn symbols_to_tuple(&self, include_mod: bool) -> Value[src]
pub fn remove_symbol(&mut self, sym: &str) -> Option<(Rc<Value>, Position)>[src]
pub fn run(&mut self) -> Result<(), Error>[src]
pub fn fcall_impl(
f: &Func,
strict: bool,
stack: &mut Vec<(Rc<Value>, Position)>,
env: Rc<RefCell<Environment<O, E>>>,
import_stack: &Vec<String>
) -> Result<(Rc<Value>, Position), Error>[src]
f: &Func,
strict: bool,
stack: &mut Vec<(Rc<Value>, Position)>,
env: Rc<RefCell<Environment<O, E>>>,
import_stack: &Vec<String>
) -> Result<(Rc<Value>, Position), Error>
pub fn binding_push(
&mut self,
name: String,
val: Rc<Value>,
strict: bool,
pos: &Position,
name_pos: &Position
) -> Result<(), Error>[src]
&mut self,
name: String,
val: Rc<Value>,
strict: bool,
pos: &Position,
name_pos: &Position
) -> Result<(), Error>
pub fn get_binding(
&'a self,
name: &str,
pos: &Position
) -> Result<(Rc<Value>, Position), Error>[src]
&'a self,
name: &str,
pos: &Position
) -> Result<(Rc<Value>, Position), Error>
pub fn pop(&mut self) -> Result<(Rc<Value>, Position), Error>[src]
Auto Trait Implementations
impl<O, E> !RefUnwindSafe for VM<O, E>
impl<O, E> !Send for VM<O, E>
impl<O, E> !Sync for VM<O, E>
impl<O, E> Unpin for VM<O, E>
impl<O, E> !UnwindSafe for VM<O, E>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,