[−][src]Struct arithmetic_eval::InterpretedFn
Function defined within the interpreter.
Implementations
impl<'a, T: Grammar> InterpretedFn<'a, T>
[src]
pub fn arg_count(&self) -> LvalueLen
[src]
Returns the number of arguments for this function.
pub fn captures(&self) -> HashMap<&'a str, &Value<'a, T>>
[src]
Returns values captured by this function.
impl<'a, T> InterpretedFn<'a, T> where
T: Grammar,
T::Lit: Num + Neg<Output = T::Lit> + Pow<T::Lit, Output = T::Lit>,
[src]
T: Grammar,
T::Lit: Num + Neg<Output = T::Lit> + Pow<T::Lit, Output = T::Lit>,
pub fn evaluate(
&self,
args: Vec<SpannedValue<'a, T>>,
ctx: &mut CallContext<'_, 'a>
) -> EvalResult<'a, T>
[src]
&self,
args: Vec<SpannedValue<'a, T>>,
ctx: &mut CallContext<'_, 'a>
) -> EvalResult<'a, T>
Evaluates this function with the provided arguments and the execution context.
Trait Implementations
impl<'a, T: Debug + Grammar> Debug for InterpretedFn<'a, T>
[src]
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for InterpretedFn<'a, T>
impl<'a, T> !Send for InterpretedFn<'a, T>
impl<'a, T> !Sync for InterpretedFn<'a, T>
impl<'a, T> Unpin for InterpretedFn<'a, T> where
<T as Grammar>::Lit: Unpin,
<T as Grammar>::Lit: Unpin,
impl<'a, T> !UnwindSafe for InterpretedFn<'a, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,