pub struct InterpretedFn<T> { /* private fields */ }Expand description
Function defined within the interpreter.
Implementations§
Source§impl<T> InterpretedFn<T>
impl<T> InterpretedFn<T>
Source§impl<T: 'static + Clone> InterpretedFn<T>
impl<T: 'static + Clone> InterpretedFn<T>
Sourcepub fn evaluate(
&self,
args: Vec<SpannedValue<T>>,
ctx: &mut CallContext<'_, T>,
) -> EvalResult<T>
pub fn evaluate( &self, args: Vec<SpannedValue<T>>, ctx: &mut CallContext<'_, T>, ) -> EvalResult<T>
Evaluates this function with the provided arguments and the execution context.
Trait Implementations§
Source§impl<T: Clone> Clone for InterpretedFn<T>
impl<T: Clone> Clone for InterpretedFn<T>
Source§fn clone(&self) -> InterpretedFn<T>
fn clone(&self) -> InterpretedFn<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for InterpretedFn<T>
impl<T> !RefUnwindSafe for InterpretedFn<T>
impl<T> !Send for InterpretedFn<T>
impl<T> !Sync for InterpretedFn<T>
impl<T> Unpin for InterpretedFn<T>where
T: Unpin,
impl<T> !UnwindSafe for InterpretedFn<T>
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