pub struct MetaCallFunction { /* private fields */ }Expand description
Represents MetaCall function.
Implementations§
Source§impl MetaCallFunction
impl MetaCallFunction
Sourcepub fn call_untyped<T: MetaCallValue>(
&self,
args: impl IntoIterator<Item = T>,
) -> Box<dyn MetaCallValue>
pub fn call_untyped<T: MetaCallValue>( &self, args: impl IntoIterator<Item = T>, ) -> Box<dyn MetaCallValue>
Calls the function with arguments and witout type casting(MetaCallValue).
Sourcepub fn call_untyped_no_arg<T: MetaCallValue>(&self) -> Box<dyn MetaCallValue>
pub fn call_untyped_no_arg<T: MetaCallValue>(&self) -> Box<dyn MetaCallValue>
Calls the function without passing arguments and witout type casting(MetaCallValue).
Sourcepub fn call<T: MetaCallValue, U: MetaCallValue>(
&self,
args: impl IntoIterator<Item = U>,
) -> Result<T, MetaCallError>
pub fn call<T: MetaCallValue, U: MetaCallValue>( &self, args: impl IntoIterator<Item = U>, ) -> Result<T, MetaCallError>
Calls the function with arguments.
Sourcepub fn call_no_arg<T: MetaCallValue>(&self) -> Result<T, MetaCallError>
pub fn call_no_arg<T: MetaCallValue>(&self) -> Result<T, MetaCallError>
Calls the function without arguments.
Trait Implementations§
Source§impl Clone for MetaCallFunction
impl Clone for MetaCallFunction
Source§impl Debug for MetaCallFunction
impl Debug for MetaCallFunction
Source§impl Drop for MetaCallFunction
impl Drop for MetaCallFunction
impl MetaCallValue for MetaCallFunction
Equivalent to MetaCall function type.
impl Send for MetaCallFunction
impl Sync for MetaCallFunction
Auto Trait Implementations§
impl Freeze for MetaCallFunction
impl RefUnwindSafe for MetaCallFunction
impl Unpin for MetaCallFunction
impl UnwindSafe for MetaCallFunction
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