pub struct Function { /* private fields */ }
Implementations§
Source§impl Function
impl Function
pub fn new(signature: FunctionSignature, body: FunctionBody) -> Self
pub fn signature(&self) -> &FunctionSignature
pub fn invoke(&self, context: &mut Context, registry: &Registry)
pub fn call<O: DataStackPack, I: DataStackPack>( &self, context: &mut Context, registry: &Registry, inputs: I, verify: bool, ) -> O
pub fn into_handle(self) -> FunctionHandle
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Function
impl !RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl !UnwindSafe for Function
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