pub struct Callable {
pub typ: FnType,
pub expr: ExprId,
/* private fields */
}
Fields§
§typ: FnType
§expr: ExprId
Implementations§
Source§impl Callable
impl Callable
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.
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 Freeze for Callable
impl !RefUnwindSafe for Callable
impl Send for Callable
impl Sync for Callable
impl Unpin for Callable
impl !UnwindSafe for Callable
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