Struct dyon::Call
[−]
[src]
pub struct Call { /* fields omitted */ }
Used to call specific functions with arguments.
Methods
impl Call
[src]
fn new(name: &str) -> Call
[src]
Creates a new call.
fn arg<T: PushVariable>(self, val: T) -> Self
[src]
Push value to argument list.
fn vec4<T: ConvertVec4>(self, val: T) -> Self
[src]
Push Vec4 to argument list.
fn rust<T: 'static>(self, val: T) -> Self
[src]
Push Rust object to argument list.
fn run(&self, runtime: &mut Runtime, module: &Arc<Module>) -> Result<(), String>
[src]
Run call without any return value.
fn run_ret<T: PopVariable>(
&self,
runtime: &mut Runtime,
module: &Arc<Module>
) -> Result<T, String>
[src]
&self,
runtime: &mut Runtime,
module: &Arc<Module>
) -> Result<T, String>
Run call with return value.
fn run_vec4<T: ConvertVec4>(
&self,
runtime: &mut Runtime,
module: &Arc<Module>
) -> Result<T, String>
[src]
&self,
runtime: &mut Runtime,
module: &Arc<Module>
) -> Result<T, String>
Convert return value to a Vec4 convertible type.