Skip to main content

lookup

Function lookup 

Source
pub fn lookup(name: &str) -> Option<&'static FuncSig>
Expand description

Find a registered function by name.

Iterates the link-time inventory directly and returns the actual &'static FuncSig — the registration slices are already 'static (see NodeRegistration::signatures), so no allocation is needed. (The former implementation built an owned Vec and Box::leak’d a clone to fabricate the 'static lifetime, leaking ~200 bytes per call — Miri’s leak-check finding 2026-06-12.)