Struct rustc_target::abi::call::FnAbi [−][src]
pub struct FnAbi<'a, Ty> {
pub args: Vec<ArgAbi<'a, Ty>>,
pub ret: ArgAbi<'a, Ty>,
pub c_variadic: bool,
pub fixed_count: usize,
pub conv: Conv,
pub can_unwind: bool,
}
Expand description
Metadata describing how the arguments to a native function should be passed in order to respect the native ABI.
I will do my best to describe this structure, but these comments are reverse-engineered and may be inaccurate. -NDM
Fields
args: Vec<ArgAbi<'a, Ty>>
The LLVM types of each argument.
ret: ArgAbi<'a, Ty>
LLVM return type.
c_variadic: bool
fixed_count: usize
The count of non-variadic arguments.
Should only be different from args.len() when c_variadic is true. This can be used to know whether an argument is variadic or not.
conv: Conv
can_unwind: bool
Implementations
pub fn adjust_for_foreign_abi<C>(
&mut self,
cx: &C,
abi: Abi
) -> Result<(), AdjustForForeignAbiError> where
Ty: TyAbiInterface<'a, C> + Copy,
C: HasDataLayout + HasTargetSpec,
Trait Implementations
impl<'a, Ty, __CTX> HashStable<__CTX> for FnAbi<'a, Ty> where
__CTX: HashStableContext,
Ty: HashStable<__CTX>,
impl<'a, Ty, __CTX> HashStable<__CTX> for FnAbi<'a, Ty> where
__CTX: HashStableContext,
Ty: HashStable<__CTX>,
Auto Trait Implementations
impl<'a, Ty> RefUnwindSafe for FnAbi<'a, Ty> where
Ty: RefUnwindSafe,
impl<'a, Ty> UnwindSafe for FnAbi<'a, Ty> where
Ty: UnwindSafe,
Blanket Implementations
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.