Skip to main content

is_aggregate_for_abi

Function is_aggregate_for_abi 

Source
fn is_aggregate_for_abi<'a, Ty, C>(cx: &C, val: &mut ArgAbi<'a, Ty>) -> bool
where Ty: TyAbiInterface<'a, C> + Copy, C: HasDataLayout,
Expand description

Return whether the value should be passed as an aggregate (i.e. indirectly).

  • Enums with integer layout and variants with only zst members are passed as aggregates
  • Aggregate wrappers around a single scalar are passed as scalars