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§
Source§impl Clone for CompoundName
impl Clone for CompoundName
Source§fn clone(&self) -> CompoundName
fn clone(&self) -> CompoundName
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CompoundName
impl Debug for CompoundName
Source§impl HasDesc for CompoundName
impl HasDesc for CompoundName
Source§impl HasSpan for CompoundName
impl HasSpan for CompoundName
Source§fn 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.Source§impl PartialEq for CompoundName
impl PartialEq for CompoundName
impl Eq for CompoundName
impl StructuralPartialEq for CompoundName
Auto Trait Implementations§
impl Freeze for CompoundName
impl RefUnwindSafe for CompoundName
impl Send for CompoundName
impl Sync for CompoundName
impl Unpin for CompoundName
impl UnwindSafe for CompoundName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more