Skip to main content

add_hook

Function add_hook 

Source
pub fn add_hook(
    registry: &mut ShapeRegistry,
    sig: HookSignatureBuilder,
    id: Option<&str>,
) -> Type
Expand description

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