pub struct Call { /* private fields */ }Expand description
Used to call specific functions with arguments.
Implementations§
Source§impl Call
impl Call
Sourcepub fn arg<T: PushVariable>(self, val: T) -> Self
pub fn arg<T: PushVariable>(self, val: T) -> Self
Push value to argument list.
Sourcepub fn vec4<T: ConvertVec4>(self, val: T) -> Self
pub fn vec4<T: ConvertVec4>(self, val: T) -> Self
Push Vec4 to argument list.
Sourcepub fn run(
&self,
runtime: &mut Runtime,
module: &Arc<Module>,
) -> Result<(), String>
pub fn run( &self, runtime: &mut Runtime, module: &Arc<Module>, ) -> Result<(), String>
Run call without any return value.
Auto Trait Implementations§
impl Freeze for Call
impl !RefUnwindSafe for Call
impl Send for Call
impl !Sync for Call
impl Unpin for Call
impl !UnwindSafe for Call
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