How can I get informations about the parameters on a function or closure in Rust?

47 Views Asked by At

Like formals (func) in R or func.__code__.co_argcount in Python. The number of a function's parameter could be get by them in their language, but I did not find a way to get that at rust yet.

Those are meta information about a function I guess, such as types about parameters or number of parameters. Is there any syntax or macro to get that ?

0

There are 0 best solutions below