How to get the infomation of the signature of a function(or method) in hir

I have a LocalDefId of a function or a method defination. How can I get the signature infomation of it, such as whether it use unsafe, what types are params...
How can I get it? Thank you.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.