Struct rustc_target::abi::call::FnType [−][src]
pub struct FnType<'a, Ty> { pub args: Vec<ArgType<'a, Ty>>, pub ret: ArgType<'a, Ty>, pub variadic: bool, pub conv: Conv, }
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<ArgType<'a, Ty>>
The LLVM types of each argument.
ret: ArgType<'a, Ty>
LLVM return type.
variadic: bool
conv: Conv
Methods
impl<'a, Ty> FnType<'a, Ty>
[src]
impl<'a, Ty> FnType<'a, Ty>
pub fn adjust_for_cabi<C>(&mut self, cx: C, abi: Abi) -> Result<(), String> where
Ty: TyLayoutMethods<'a, C> + Copy,
C: LayoutOf<Ty = Ty, TyLayout = TyLayout<'a, Ty>> + HasDataLayout + HasTargetSpec,
[src]
pub fn adjust_for_cabi<C>(&mut self, cx: C, abi: Abi) -> Result<(), String> where
Ty: TyLayoutMethods<'a, C> + Copy,
C: LayoutOf<Ty = Ty, TyLayout = TyLayout<'a, Ty>> + HasDataLayout + HasTargetSpec,