Skip to main content

script_fns

Function script_fns 

Source
pub fn script_fns(
    addon: &Addon,
    body: impl FnMut(usize, &AddonFunction) -> ScriptFnBody,
) -> Result<Vec<ScriptFn>, String>
Expand description

Every function addon offers, bound to the body body builds for it.

body is called once per function with its position in Addon::functions and its description.

§Errors

A function’s signature names no type.