pub struct Callable<X: GXExt> {
pub typ: FnType,
pub expr: ExprId,
/* private fields */
}Fields§
§typ: FnType§expr: ExprIdImplementations§
Source§impl<X: GXExt> Callable<X>
impl<X: GXExt> Callable<X>
Sourcepub async fn call(&self, args: ValArray) -> Result<()>
pub async fn call(&self, args: ValArray) -> Result<()>
Call the lambda with args
Argument types and arity will be checked and an error will be returned if they are wrong. If you call the function more than once before it returns there is no guarantee that the returns will arrive in the order of the calls. There is no guarantee that a function must return.
Sourcepub async fn call_unchecked(&self, args: ValArray) -> Result<()>
pub async fn call_unchecked(&self, args: ValArray) -> Result<()>
Call the lambda with args. Argument types and arity will NOT be checked. This can result in a runtime panic, invalid results, and probably other bad things.
Trait Implementations§
Auto Trait Implementations§
impl<X> Freeze for Callable<X>
impl<X> !RefUnwindSafe for Callable<X>
impl<X> Send for Callable<X>
impl<X> Sync for Callable<X>
impl<X> Unpin for Callable<X>
impl<X> !UnwindSafe for Callable<X>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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