Struct fungi_lang::ast::HostEvalFn
source · pub struct HostEvalFn {
pub path: String,
pub arity: usize,
pub eval: Rc<dyn Fn(Vec<RtVal>) -> ExpTerm>,
}
Expand description
Host-language evaluation function (extend Rust-based Fungi interpreter).
For use as a trapdoor for many different primitives in Fungi’s standard library (e.g., vectors, strings, etc.).
Fields
path: String
arity: usize
eval: Rc<dyn Fn(Vec<RtVal>) -> ExpTerm>
Trait Implementations
sourceimpl Clone for HostEvalFn
impl Clone for HostEvalFn
sourcefn clone(&self) -> HostEvalFn
fn clone(&self) -> HostEvalFn
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for HostEvalFn
impl Debug for HostEvalFn
sourceimpl Hash for HostEvalFn
impl Hash for HostEvalFn
sourceimpl PartialEq<HostEvalFn> for HostEvalFn
impl PartialEq<HostEvalFn> for HostEvalFn
sourceimpl Serialize for HostEvalFn
impl Serialize for HostEvalFn
impl Eq for HostEvalFn
Auto Trait Implementations
impl !RefUnwindSafe for HostEvalFn
impl !Send for HostEvalFn
impl !Sync for HostEvalFn
impl Unpin for HostEvalFn
impl !UnwindSafe for HostEvalFn
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more