Trait rant::AsRantFunction[][src]

pub trait AsRantFunction<Params: FromRantArgs> {
    fn as_rant_func(&'static self) -> RantFunction;
}

Trait for converting something to a Rant function.

Required methods

fn as_rant_func(&'static self) -> RantFunction[src]

Performs the conversion.

Loading content...

Implementors

impl<Params: FromRantArgs, Function: Fn(&mut VM<'_>, Params) -> Result<(), RuntimeError>> AsRantFunction<Params> for Function[src]

Loading content...