Add method to get FnAbi
of function pointer
This commit is contained in:
parent
4e6de37349
commit
225796a2df
4 changed files with 44 additions and 1 deletions
|
@ -215,6 +215,9 @@ pub trait Context {
|
|||
/// Get an instance ABI.
|
||||
fn instance_abi(&self, def: InstanceDef) -> Result<FnAbi, Error>;
|
||||
|
||||
/// Get the ABI of a function pointer.
|
||||
fn fn_ptr_abi(&self, fn_ptr: PolyFnSig) -> Result<FnAbi, Error>;
|
||||
|
||||
/// Get the layout of a type.
|
||||
fn ty_layout(&self, ty: Ty) -> Result<Layout, Error>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue