pub struct VirtualMachine<'c> {
pub symbols: SymbolTable<'c>,
/* private fields */
}Fields§
§symbols: SymbolTable<'c>Implementations§
Source§impl<'c> VirtualMachine<'c>
impl<'c> VirtualMachine<'c>
pub fn new() -> VirtualMachine<'c>
pub fn setq( &mut self, symbol: Symbol<'c>, value: Value<'c>, ) -> Result<Value<'c>>
pub fn symbols(&self) -> SymTable<'c>
pub fn eval_string(&mut self, string: &'c str) -> Result<Value<'c>>
pub fn eval(&mut self, item: Value<'c>) -> Result<Value<'c>>
pub fn eval_symbol_function( &mut self, sym: &Symbol<'c>, list: Value<'c>, ) -> Result<Value<'c>>
Trait Implementations§
Source§impl<'c> Clone for VirtualMachine<'c>
impl<'c> Clone for VirtualMachine<'c>
Source§fn clone(&self) -> VirtualMachine<'c>
fn clone(&self) -> VirtualMachine<'c>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'c> Freeze for VirtualMachine<'c>
impl<'c> RefUnwindSafe for VirtualMachine<'c>
impl<'c> !Send for VirtualMachine<'c>
impl<'c> !Sync for VirtualMachine<'c>
impl<'c> Unpin for VirtualMachine<'c>
impl<'c> UnwindSafe for VirtualMachine<'c>
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