Skip to main content

sql_params

Function sql_params 

Source
fn sql_params(shape: Shape, func: &ItemFn) -> Result<(Vec<Type>, Vec<Ident>)>
Expand description

The SQL arguments’ pre-erasure types, and the names call binds them to.

Unary and binary bind their inputs positionally as a and b, ignoring how the function spells its parameters, while variadic forwards the real names.