Struct fungi_lang::ast::HostEvalFn
[−]
[src]
pub struct HostEvalFn { pub path: String, pub arity: usize, pub eval: Rc<Fn(Vec<RtVal>) -> ExpTerm>, }
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<Fn(Vec<RtVal>) -> ExpTerm>
Trait Implementations
impl Clone for HostEvalFn
[src]
fn clone(&self) -> HostEvalFn
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Hash for HostEvalFn
[src]
fn hash<H: Hasher>(&self, _hasher: &mut H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for HostEvalFn
[src]
impl PartialEq for HostEvalFn
[src]
fn eq(&self, _other: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.