Struct rustc_target::abi::call::ArgAbi [−][src]
pub struct ArgAbi<'a, Ty> {
pub layout: TyAndLayout<'a, Ty>,
pub pad: Option<Reg>,
pub mode: PassMode,
}
Expand description
Information about how to pass an argument to, or return a value from, a function, under some ABI.
Fields
layout: TyAndLayout<'a, Ty>
pad: Option<Reg>
Dummy argument, which is emitted before the real argument.
mode: PassMode
Implementations
pub fn new(
cx: &impl HasDataLayout,
layout: TyAndLayout<'a, Ty>,
scalar_attrs: impl Fn(&TyAndLayout<'a, Ty>, Scalar, Size) -> ArgAttributes
) -> Self
Trait Implementations
impl<'a, Ty, __CTX> HashStable<__CTX> for ArgAbi<'a, Ty> where
__CTX: HashStableContext,
Ty: HashStable<__CTX>,
impl<'a, Ty, __CTX> HashStable<__CTX> for ArgAbi<'a, Ty> where
__CTX: HashStableContext,
Ty: HashStable<__CTX>,
Auto Trait Implementations
impl<'a, Ty> RefUnwindSafe for ArgAbi<'a, Ty> where
Ty: RefUnwindSafe,
impl<'a, Ty> UnwindSafe for ArgAbi<'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.