Struct moore_vhdl_syntax::ast::CompoundName
[−]
[src]
pub struct CompoundName { pub id: NodeId, pub span: Span, pub primary: PrimaryName, pub parts: Vec<NamePart>, }
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
impl Clone for CompoundName
[src]
fn clone(&self) -> CompoundName
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for CompoundName
[src]
impl PartialEq for CompoundName
[src]
fn eq(&self, __arg_0: &CompoundName) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CompoundName) -> bool
[src]
This method tests for !=
.
impl Eq for CompoundName
[src]
impl Encodable for CompoundName
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
[src]
Serialize a value using an Encoder
.
impl Decodable for CompoundName
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<CompoundName, __D::Error>
[src]
Deserialize a value using a Decoder
.
impl HasSpan for CompoundName
[src]
fn span(&self) -> Span
[src]
Obtain the full span of the input file that this node covers.
fn human_span(&self) -> Span
[src]
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