Enum moore_vhdl::hir::ExprData[][src]

pub enum ExprData {
Show 20 variants Name(DefSpan), ConstName(ConstDeclRef), SignalName(SignalRef), VarName(VarDeclRef), FileName(FileDeclRef), EnumName(Vec<Spanned<EnumRef>>), OverloadedName(Vec<Spanned<Def>>), Select(ExprRefSpanned<ResolvableName>), Attr(ExprRefSpanned<ResolvableName>), StringLiteral(Vec<(TypeDeclRef, Vec<usize>)>), IntegerLiteral(ConstInt), FloatLiteral(ConstFloat), Unary(Spanned<UnaryOp>, Vec<Spanned<Def>>, ExprRef), Binary(Spanned<BinaryOp>, Vec<Spanned<Def>>, ExprRefExprRef), Range(DirExprRefExprRef), Aggregate(AggregateRef), Qualified(Spanned<TypeMarkRef>, ExprRef), Allocator(Spanned<TypeMarkRef>, Option<ExprRef>), Cast(Spanned<TypeMarkRef>, ExprRef), Call(ExprRefSpanned<AssocList>),
}
Expand description

An expression variant.

Variants

Name(DefSpan)

A resolved name. Consists of the definition and the definition’s span.

Tuple Fields of Name

0: Def1: Span
ConstName(ConstDeclRef)

A resolved constant name.

Tuple Fields of ConstName

0: ConstDeclRef
SignalName(SignalRef)

A resolved signal name.

Tuple Fields of SignalName

0: SignalRef
VarName(VarDeclRef)

A resolved variable name.

Tuple Fields of VarName

0: VarDeclRef
FileName(FileDeclRef)

A resolved file name.

Tuple Fields of FileName

0: FileDeclRef
EnumName(Vec<Spanned<EnumRef>>)

An overloaded enum name.

Tuple Fields of EnumName

0: Vec<Spanned<EnumRef>>
OverloadedName(Vec<Spanned<Def>>)
👎 Deprecated

An overloaded resolved name.

Tuple Fields of OverloadedName

0: Vec<Spanned<Def>>
👎 Deprecated

A selection, e.g. a.b.

Tuple Fields of Select

0: ExprRef1: Spanned<ResolvableName>

An attribute selection, e.g. a'b.

Tuple Fields of Attr

0: ExprRef1: Spanned<ResolvableName>
StringLiteral(Vec<(TypeDeclRef, Vec<usize>)>)

A bit string literal.

Tuple Fields of StringLiteral

0: Vec<(TypeDeclRef, Vec<usize>)>
IntegerLiteral(ConstInt)

An integer literal.

Tuple Fields of IntegerLiteral

0: ConstInt
FloatLiteral(ConstFloat)

A float literal.

Tuple Fields of FloatLiteral

0: ConstFloat

A unary operator expression.

Tuple Fields of Unary

0: Spanned<UnaryOp>1: Vec<Spanned<Def>>2: ExprRef

A binary operator expression.

Tuple Fields of Binary

0: Spanned<BinaryOp>1: Vec<Spanned<Def>>2: ExprRef3: ExprRef
Range(DirExprRefExprRef)

A range expression.

Tuple Fields of Range

0: Dir1: ExprRef2: ExprRef
Aggregate(AggregateRef)

An aggregate expression.

Tuple Fields of Aggregate

0: AggregateRef

A qualified expression.

Tuple Fields of Qualified

0: Spanned<TypeMarkRef>1: ExprRef

An allocator expression, i.e. new.

Tuple Fields of Allocator

0: Spanned<TypeMarkRef>1: Option<ExprRef>

A cast expression.

Tuple Fields of Cast

0: Spanned<TypeMarkRef>1: ExprRef

A function call expression.

Tuple Fields of Call

0: ExprRef1: Spanned<AssocList>

Trait Implementations

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.