Struct rustc_target::abi::call::ArgAbi
source · pub struct ArgAbi<'a, Ty> {
pub layout: TyAndLayout<'a, Ty>,
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>
§mode: PassMode
Implementations§
source§impl<'a, Ty> ArgAbi<'a, Ty>
impl<'a, Ty> ArgAbi<'a, Ty>
pub fn new(
cx: &impl HasDataLayout,
layout: TyAndLayout<'a, Ty>,
scalar_attrs: impl Fn(&TyAndLayout<'a, Ty>, Scalar, Size) -> ArgAttributes
) -> Self
fn indirect_pass_mode(layout: &TyAndLayout<'a, Ty>) -> PassMode
pub fn make_indirect(&mut self)
pub fn make_indirect_byval(&mut self)
pub fn extend_integer_width_to(&mut self, bits: u64)
pub fn cast_to<T: Into<CastTarget>>(&mut self, target: T)
pub fn cast_to_and_pad_i32<T: Into<CastTarget>>(
&mut self,
target: T,
pad_i32: bool
)
pub fn is_indirect(&self) -> bool
pub fn is_sized_indirect(&self) -> bool
pub fn is_unsized_indirect(&self) -> bool
pub fn is_ignore(&self) -> bool
Trait Implementations§
source§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>,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
source§impl<'a, Ty: PartialEq> PartialEq<ArgAbi<'a, Ty>> for ArgAbi<'a, Ty>
impl<'a, Ty: PartialEq> PartialEq<ArgAbi<'a, Ty>> for ArgAbi<'a, Ty>
impl<'a, Ty: Eq> Eq for ArgAbi<'a, Ty>
impl<'a, Ty> StructuralEq for ArgAbi<'a, Ty>
impl<'a, Ty> StructuralPartialEq for ArgAbi<'a, Ty>
Auto Trait Implementations§
impl<'a, Ty> RefUnwindSafe for ArgAbi<'a, Ty>where
Ty: RefUnwindSafe,
impl<'a, Ty> Send for ArgAbi<'a, Ty>where
Ty: Send,
impl<'a, Ty> Sync for ArgAbi<'a, Ty>where
Ty: Sync,
impl<'a, Ty> Unpin for ArgAbi<'a, Ty>where
Ty: Unpin,
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.