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.