Struct eval::Function [] [src]

pub struct Function {
    pub max_args: Option<usize>,
    pub min_args: Option<usize>,
    pub compiled: Box<Fn(Vec<Value>) -> Result<Value, Error> + Sync + Send>,
}

Custom function

Fields

Maximum number of arguments.

Minimum number of arguments.

Accept values and return a result which contains a value.

Methods

impl Function
[src]

Create a function with a closure.

Trait Implementations

impl Debug for Function
[src]

Formats the value using the given formatter.