HostFunc

Trait HostFunc 

Source
pub trait HostFunc {
    // Required method
    fn invoke(&mut self, args: &[Val], env: &mut Env<'_>) -> Option<Val>;
}

Required Methods§

Source

fn invoke(&mut self, args: &[Val], env: &mut Env<'_>) -> Option<Val>

Implementations on Foreign Types§

Source§

impl HostFunc for ()

Source§

fn invoke(&mut self, _args: &[Val], _env: &mut Env<'_>) -> Option<Val>

Implementors§