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

Trait Implementations

impl Clone for HostEvalFn
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for HostEvalFn
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for HostEvalFn
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for HostEvalFn
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for HostEvalFn
[src]