Skip to main content

lookup_external

Function lookup_external 

Source
pub fn lookup_external<'a>(
    functions: &'a [ExternalFunction],
    name: &[u8],
    argc: usize,
) -> Option<&'a ExternalFunction>
Expand description

Returns the registration that answers a call, preferring an exact arity.

SQLite resolves the same way: a function registered for exactly this many arguments wins over one registered for any number, so an application can define both a fast two-argument form and a general one.