pub struct DebrisFunctionInterface(NormalizedFunction);
Expand description
The common type for working with callbacks
Tuple Fields§
§0: NormalizedFunction
Implementations§
source§impl DebrisFunctionInterface
impl DebrisFunctionInterface
sourcepub(crate) fn call(
&self,
function_ctx: &mut FunctionContext<'_, '_, '_>
) -> Result<ObjectRef>
pub(crate) fn call( &self, function_ctx: &mut FunctionContext<'_, '_, '_> ) -> Result<ObjectRef>
Calls this interface and returns the result and a vec of the generated nodes
pub(crate) fn call_raw( &self, function_ctx: &mut FunctionContext<'_, '_, '_> ) -> Option<LangResult<ObjectRef>>
pub fn handle_raw_result( &self, function_ctx: &FunctionContext<'_, '_, '_>, value: Option<LangResult<ObjectRef>> ) -> LangResult<ObjectRef>
Trait Implementations§
source§impl From<NormalizedFunction> for DebrisFunctionInterface
impl From<NormalizedFunction> for DebrisFunctionInterface
source§fn from(value: NormalizedFunction) -> Self
fn from(value: NormalizedFunction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DebrisFunctionInterface
impl !Send for DebrisFunctionInterface
impl !Sync for DebrisFunctionInterface
impl Unpin for DebrisFunctionInterface
impl !UnwindSafe for DebrisFunctionInterface
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