[][src]Struct ucglib::build::opcode::VM

pub struct VM<O, E> where
    O: Write + Clone,
    E: Write + Clone
{ pub env: Rc<RefCell<Environment<O, E>>>, pub last: Option<(Rc<Value>, Position)>, // some fields omitted }

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]

pub fn new<P: Into<PathBuf>>(
    strict: bool,
    ops: Rc<PositionMap>,
    env: Rc<RefCell<Environment<O, E>>>,
    working_dir: P
) -> Self
[src]

pub fn with_pointer<P: Into<PathBuf>>(
    strict: bool,
    ops: OpPointer,
    env: Rc<RefCell<Environment<O, E>>>,
    working_dir: P
) -> Self
[src]

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]

pub fn binding_push(
    &mut self,
    name: String,
    val: Rc<Value>,
    strict: bool,
    pos: &Position,
    name_pos: &Position
) -> Result<(), Error>
[src]

pub fn get_binding(
    &'a self,
    name: &str,
    pos: &Position
) -> Result<(Rc<Value>, Position), Error>
[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.