pub struct EvalExternalFunction<C> {
pub func: Box<dyn FnMut(&[VariableValue], &mut C) -> Result<Value, RuntimeError>>,
pub id: ExternalFunctionId,
}
Fields§
§func: Box<dyn FnMut(&[VariableValue], &mut C) -> Result<Value, RuntimeError>>
§id: ExternalFunctionId
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for EvalExternalFunction<C>
impl<C> !RefUnwindSafe for EvalExternalFunction<C>
impl<C> !Send for EvalExternalFunction<C>
impl<C> !Sync for EvalExternalFunction<C>
impl<C> Unpin for EvalExternalFunction<C>
impl<C> !UnwindSafe for EvalExternalFunction<C>
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