Struct arithmetic_eval::InterpretedFn
source · 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 copy 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)