[−][src]Struct dyon::runtime::Runtime
Fields
stack: Vec<Variable>
call_stack: Vec<Call>
name, file, stack_len, local_len.
local_stack: Vec<(Arc<String>, usize)>
current_stack: Vec<(Arc<String>, usize)>
ret: Arc<String>
rng: StdRng
text_type: Variable
f64_type: Variable
vec4_type: Variable
return_type: Variable
bool_type: Variable
object_type: Variable
array_type: Variable
link_type: Variable
ref_type: Variable
unsafe_ref_type: Variable
rust_object_type: Variable
option_type: Variable
result_type: Variable
thread_type: Variable
closure_type: Variable
in_type: Variable
Methods
impl Runtime
[src]
impl Runtime
pub fn new() -> Runtime
[src]
pub fn new() -> Runtime
pub fn pop<T: PopVariable>(&mut self) -> Result<T, String>
[src]
pub fn pop<T: PopVariable>(&mut self) -> Result<T, String>
pub fn pop_vec4<T: ConvertVec4>(&mut self) -> Result<T, String>
[src]
pub fn pop_vec4<T: ConvertVec4>(&mut self) -> Result<T, String>
pub fn var<T: PopVariable>(&self, var: &Variable) -> Result<T, String>
[src]
pub fn var<T: PopVariable>(&self, var: &Variable) -> Result<T, String>
pub fn var_vec4<T: ConvertVec4>(&self, var: &Variable) -> Result<T, String>
[src]
pub fn var_vec4<T: ConvertVec4>(&self, var: &Variable) -> Result<T, String>
pub fn push<T: PushVariable>(&mut self, val: T)
[src]
pub fn push<T: PushVariable>(&mut self, val: T)
Push value to stack.
pub fn push_vec4<T: ConvertVec4>(&mut self, val: T)
[src]
pub fn push_vec4<T: ConvertVec4>(&mut self, val: T)
Push Vec4 to stack.
pub fn push_rust<T: 'static>(&mut self, val: T)
[src]
pub fn push_rust<T: 'static>(&mut self, val: T)
Pushes Rust object to stack.
pub fn expected(&self, var: &Variable, ty: &str) -> String
[src]
pub fn expected(&self, var: &Variable, ty: &str) -> String
pub fn resolve<'a>(&'a self, var: &'a Variable) -> &'a Variable
[src]
pub fn resolve<'a>(&'a self, var: &'a Variable) -> &'a Variable
pub fn unary_f64<F: FnOnce(f64) -> f64>(
&mut self,
call: &Call,
module: &Module,
f: F
) -> Result<Option<Variable>, String>
[src]
pub fn unary_f64<F: FnOnce(f64) -> f64>(
&mut self,
call: &Call,
module: &Module,
f: F
) -> Result<Option<Variable>, String>
pub fn push_fn(
&mut self,
name: Arc<String>,
index: usize,
file: Option<Arc<String>>,
st: usize,
lc: usize,
cu: usize
)
[src]
pub fn push_fn(
&mut self,
name: Arc<String>,
index: usize,
file: Option<Arc<String>>,
st: usize,
lc: usize,
cu: usize
)
pub fn pop_fn(&mut self, name: Arc<String>)
[src]
pub fn pop_fn(&mut self, name: Arc<String>)
pub fn expression(
&mut self,
expr: &Expression,
side: Side,
module: &Arc<Module>
) -> Result<(Option<Variable>, Flow), String>
[src]
pub fn expression(
&mut self,
expr: &Expression,
side: Side,
module: &Arc<Module>
) -> Result<(Option<Variable>, Flow), String>
pub fn try(
&mut self,
expr: &Expression,
side: Side,
module: &Arc<Module>
) -> Result<(Option<Variable>, Flow), String>
[src]
pub fn try(
&mut self,
expr: &Expression,
side: Side,
module: &Arc<Module>
) -> Result<(Option<Variable>, Flow), String>
pub fn run(&mut self, module: &Arc<Module>) -> Result<(), String>
[src]
pub fn run(&mut self, module: &Arc<Module>) -> Result<(), String>
pub fn go(
&mut self,
go: &Go,
module: &Arc<Module>
) -> Result<(Option<Variable>, Flow), String>
[src]
pub fn go(
&mut self,
go: &Go,
module: &Arc<Module>
) -> Result<(Option<Variable>, Flow), String>
pub fn call_closure(
&mut self,
call: &CallClosure,
module: &Arc<Module>
) -> Result<(Option<Variable>, Flow), String>
[src]
pub fn call_closure(
&mut self,
call: &CallClosure,
module: &Arc<Module>
) -> Result<(Option<Variable>, Flow), String>
pub fn call(
&mut self,
call: &Call,
module: &Arc<Module>
) -> Result<(Option<Variable>, Flow), String>
[src]
pub fn call(
&mut self,
call: &Call,
module: &Arc<Module>
) -> Result<(Option<Variable>, Flow), String>
Called from the outside, e.g. a loader script by call
or call_ret
intrinsic.
pub fn call_str(
&mut self,
function: &str,
args: &[Variable],
module: &Arc<Module>
) -> Result<(), String>
[src]
pub fn call_str(
&mut self,
function: &str,
args: &[Variable],
module: &Arc<Module>
) -> Result<(), String>
Calls function by name.
pub fn call_str_ret(
&mut self,
function: &str,
args: &[Variable],
module: &Arc<Module>
) -> Result<Variable, String>
[src]
pub fn call_str_ret(
&mut self,
function: &str,
args: &[Variable],
module: &Arc<Module>
) -> Result<Variable, String>
Call function by name, returning a value.
pub fn typeof_var(&self, var: &Variable) -> Arc<String>
[src]
pub fn typeof_var(&self, var: &Variable) -> Arc<String>
pub fn stack_trace(&self) -> String
[src]
pub fn stack_trace(&self) -> String
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> Typeable for T where
T: Any,
impl<T> Typeable for T where
T: Any,