Skip to main content

add_function

Function add_function 

Source
pub fn add_function(
    registry: &mut ShapeRegistry,
    properties: Vec<(String, Type)>,
    sig: FunctionSignatureBuilder,
    id: Option<&str>,
    is_constructor: bool,
) -> Type
Expand description

Add a non-hook function to a ShapeRegistry. Returns a Type::Function representing the added function.