[−][src]Struct zub::vm::vm::VM
Fields
heap: Heap<Object>
globals: HashMap<String, Value, FnvBuildHasher>
open_upvalues: Vec<UpValue>
stack: Vec<Value>
frames: Vec<CallFrame>
Implementations
impl VM
[src]
pub fn new() -> Self
[src]
pub fn exec_from(
&mut self,
atoms: &[ExprNode],
locals: Vec<Local>,
debug: bool
) -> Vec<Local>
[src]
&mut self,
atoms: &[ExprNode],
locals: Vec<Local>,
debug: bool
) -> Vec<Local>
pub fn exec(&mut self, atoms: &[ExprNode], debug: bool)
[src]
pub fn add_native(
&mut self,
name: &str,
func: fn(_: &Heap<Object>, _: &[Value]) -> Value,
arity: u8
)
[src]
&mut self,
name: &str,
func: fn(_: &Heap<Object>, _: &[Value]) -> Value,
arity: u8
)
Auto Trait Implementations
impl !RefUnwindSafe for VM
impl !Send for VM
impl !Sync for VM
impl Unpin for VM
impl !UnwindSafe for VM
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> Same<T> for T
type Output = T
Should always be Self
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>,