[][src]Struct rustc_target::abi::call::FnType

pub struct FnType<'a, Ty> {
    pub args: Vec<ArgType<'a, Ty>>,
    pub ret: ArgType<'a, Ty>,
    pub c_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.

c_variadic: boolconv: Conv

Methods

impl<'a, Ty> FnType<'a, Ty>[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
[src]

Trait Implementations

impl<'a, Ty: Debug> Debug for FnType<'a, Ty>[src]

Auto Trait Implementations

impl<'a, Ty> Send for FnType<'a, Ty> where
    Ty: Send

impl<'a, Ty> Sync for FnType<'a, Ty> where
    Ty: Sync

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<E> SpecializationError for E[src]

impl<T> Erased for T[src]

impl<T> Send for T where
    T: ?Sized
[src]

impl<T> Sync for T where
    T: ?Sized
[src]