Struct moore_vhdl_syntax::ast::CompoundName
source · [−]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
sourceimpl Clone for CompoundName
impl Clone for CompoundName
sourcefn clone(&self) -> CompoundName
fn clone(&self) -> CompoundName
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CompoundName
impl Debug for CompoundName
sourceimpl HasDesc for CompoundName
impl HasDesc for CompoundName
sourceimpl HasSpan for CompoundName
impl HasSpan for CompoundName
sourcefn human_span(&self) -> Span
fn human_span(&self) -> Span
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
sourceimpl PartialEq<CompoundName> for CompoundName
impl PartialEq<CompoundName> for CompoundName
sourcefn eq(&self, other: &CompoundName) -> bool
fn eq(&self, other: &CompoundName) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CompoundName) -> bool
fn ne(&self, other: &CompoundName) -> bool
This method tests for !=
.
impl Eq for CompoundName
impl StructuralEq for CompoundName
impl StructuralPartialEq for CompoundName
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more