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