Struct rustc::middle::trans::cabi::ArgType[src]

pub struct ArgType {
    pub kind: ArgKind,
    pub ty: Type,
    pub cast: Option<Type>,
    pub pad: Option<Type>,
    pub attr: Option<Attribute>,
}

Information about how a specific C type should be passed to or returned from a function

This is borrowed from clang's ABIInfo.h

Fields

kind
ty

Original LLVM type

cast

Coerced LLVM Type

pad

Dummy argument, which is emitted before the real argument

attr

LLVM attribute of argument

Methods

impl ArgType

fn direct(ty: Type, cast: Option<Type>, pad: Option<Type>, attr: Option<Attribute>) -> ArgType

fn indirect(ty: Type, attr: Option<Attribute>) -> ArgType

fn ignore(ty: Type) -> ArgType

fn is_indirect(&self) -> bool

fn is_ignore(&self) -> bool

Trait Implementations

Derived Implementations

impl Clone for ArgType

fn clone(&self) -> ArgType

fn clone_from(&mut self, source: &Self)