Compare two container type paths by their ident segments (ignoring lifetimes
and generic arguments). Two containers are βsameβ if their path idents match.
Derives an output_type_expr TokenStream from the structural relationship
between input types and the output type, based on where generic parameters appear.
Checks whether a parameterβs type is Variadic<...> or OptionalArg<...>,
which indicates the function should be treated as variadic regardless of
parameter count.
An expression of type Option<SqlColumnType>: the column type of ty if
it implements AsColumnType, else None. Resolved by autoref
specialization on ColumnTypeProbe, so it needs no trait bound the macro
cannot check.
Implementation for the #[sqlfunc] macro. The first parameter is the attribute
arguments, the second is the function body. The third parameter indicates
whether to include the test function in the output.
Emits the source-derived members of the generated FuncName impl: the
SQLFUNC const (declaration text, types-only signature, body
fingerprint) and sqlfunc_input_types, which yields the column types the
function naturally consumes when every parameter type has one. Both exist
only under mz-exprβs func-registry feature, like the trait members they
implement.