Struct moore_vhdl_syntax::ast::CompoundName [−][src]
pub struct CompoundName { pub id: NodeId, pub span: Span, pub primary: PrimaryName, pub parts: Vec<NamePart>, }
Expand description
A compound name consisting of a primary name (identifier, character literal, or string literal), and zero or more suffices (select, attribute, call). The names in IEEE 1076-2008 section 8.1 map to this as follows:
In the standard | In this module |
---|---|
simple_name | PrimaryNameKind::Ident |
operator_symbol | PrimaryNameKind::String |
character_literal | PrimaryNameKind::Char |
selected_name | NamePart::{Select, SelectAll} |
indexed_name | NamePart::Call |
slice_name | NamePart::Call |
function_call | NamePart::Call |
attribute_name | NamePart::Attribute |
external_name | not implemented |
Fields
id: NodeId
span: Span
primary: PrimaryName
parts: Vec<NamePart>
Trait Implementations
Obtain a span which can be used to refer to this node in error messages
presented to humans. This will generally be the name for things like
entities, processes, and variables. Defaults to return whatever span()
returns. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CompoundName
impl Send for CompoundName
impl Sync for CompoundName
impl Unpin for CompoundName
impl UnwindSafe for CompoundName
Blanket Implementations
Mutably borrows from an owned value. Read more