Enum moore_vhdl::score::LatentName
source · [−]pub enum LatentName<'ast> {
Simple(&'ast Spanned<Name>),
Primary(&'ast PrimaryName),
Compound(&'ast CompoundName),
}
Expand description
A general name in the AST that can be resolved. Used for e.g. for package and subprogram bodies to resolve the name of their target.
Variants
Simple(&'ast Spanned<Name>)
A simple name.
Primary(&'ast PrimaryName)
A primary name.
Compound(&'ast CompoundName)
A compound name.
Trait Implementations
sourceimpl<'ast> Clone for LatentName<'ast>
impl<'ast> Clone for LatentName<'ast>
sourcefn clone(&self) -> LatentName<'ast>
fn clone(&self) -> LatentName<'ast>
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<'ast> Debug for LatentName<'ast>
impl<'ast> Debug for LatentName<'ast>
sourceimpl<'ast> From<&'ast CompoundName> for LatentName<'ast>
impl<'ast> From<&'ast CompoundName> for LatentName<'ast>
sourcefn from(other: &'ast CompoundName) -> LatentName<'ast>
fn from(other: &'ast CompoundName) -> LatentName<'ast>
Performs the conversion.
sourceimpl<'ast> From<&'ast PrimaryName> for LatentName<'ast>
impl<'ast> From<&'ast PrimaryName> for LatentName<'ast>
sourcefn from(other: &'ast PrimaryName) -> LatentName<'ast>
fn from(other: &'ast PrimaryName) -> LatentName<'ast>
Performs the conversion.
sourceimpl<'ast> From<&'ast Spanned<Name>> for LatentName<'ast>
impl<'ast> From<&'ast Spanned<Name>> for LatentName<'ast>
sourcefn from(other: &'ast Spanned<Name>) -> LatentName<'ast>
fn from(other: &'ast Spanned<Name>) -> LatentName<'ast>
Performs the conversion.
sourceimpl<'ast> HasDesc for LatentName<'ast>
impl<'ast> HasDesc for LatentName<'ast>
sourceimpl<'ast> HasSpan for LatentName<'ast>
impl<'ast> HasSpan for LatentName<'ast>
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
impl<'ast> Copy for LatentName<'ast>
Auto Trait Implementations
impl<'ast> RefUnwindSafe for LatentName<'ast>
impl<'ast> Send for LatentName<'ast>
impl<'ast> Sync for LatentName<'ast>
impl<'ast> Unpin for LatentName<'ast>
impl<'ast> UnwindSafe for LatentName<'ast>
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
impl<T> Pointable for T
impl<T> Pointable for T
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