pub struct Aggregate(pub Index);
Expand description
A collection of Type
s.
XXX I’ve added Array as using Aggregate in the hope ExtractValue could be used just like with struct aggregates, but it turns out we need ExtractElement (which takes an index Value). So Aggregate can be a ‘struct’ or ‘array’ but you only ever use them with Struct and Array types and with ExtractValue and ExtractElement… so they’re orthogonal and we can simplify aggregate again to be only for structs.
But also to keep Type as Copy we need to put the Array meta into another copy type (rather than
recursing with Box
Tuple Fields
0: Index
Implementations
Return a new struct specific aggregate.
Returna new array specific aggregate.
Get the type of (nested) aggregate fields, if found.
Get the type of the array element, if applicable.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Aggregate
impl UnwindSafe for Aggregate
Blanket Implementations
Mutably borrows from an owned value. Read more