> module
std::reflect::func
function signatures
use std::reflect::func; in the browser
Inspects a function value: a named function, a closure, an enum or struct constructor, or a native function. Native functions report only their name and parameter count. Anything else is a runtime error.
> functions
Its parameter types, None where a parameter has no type annotation.
#
return_type(f: fn) -> Option<type>Its return type, or None when it isn't declared.