pub struct Aggregate {
    pub parent: ScopeRef,
    pub span: Span,
    pub positional: Vec<Spanned<ExprRef>>,
    pub named: AggregateKind,
    pub others: Option<Spanned<ExprRef>>,
}
Expand description

An aggregate.

See IEEE 1076-2008 section 9.3.3.1.

Fields

parent: ScopeRef

The parent scope.

span: Span

The span the aggregate covers in the source file.

positional: Vec<Spanned<ExprRef>>

The positional fields of the aggregate.

named: AggregateKind

The named fields of the aggregate.

others: Option<Spanned<ExprRef>>

The others field of the aggregate.

Trait Implementations

Allocate a value of type T.

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.