Enum moore_vhdl::score::ResolvableName
source · [−]Expand description
A name that can be resolved in a scope.
Variants
Ident(Name)
Bit(char)
Operator(Operator)
Implementations
sourceimpl ResolvableName
impl ResolvableName
sourcepub fn from_primary_name<C>(
primary: &PrimaryName,
context: C
) -> Result<Spanned<ResolvableName>> where
C: DiagEmitter,
pub fn from_primary_name<C>(
primary: &PrimaryName,
context: C
) -> Result<Spanned<ResolvableName>> where
C: DiagEmitter,
Convert a primary name to a resolvable name.
Primary names are present in the AST as the initial parts of compound
names, e.g. in use clauses, or as standalone names, e.g. in functions.
The conversion fails if the primary name is a string literal ("..."
)
which does not name a known operator.
sourcepub fn is_operator(&self) -> bool
pub fn is_operator(&self) -> bool
Check whether this name is an operator.
Trait Implementations
sourceimpl Clone for ResolvableName
impl Clone for ResolvableName
sourcefn clone(&self) -> ResolvableName
fn clone(&self) -> ResolvableName
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 ResolvableName
impl Debug for ResolvableName
sourceimpl Display for ResolvableName
impl Display for ResolvableName
sourceimpl From<BinaryOp> for ResolvableName
impl From<BinaryOp> for ResolvableName
sourcefn from(op: BinaryOp) -> ResolvableName
fn from(op: BinaryOp) -> ResolvableName
Performs the conversion.
sourceimpl From<Name> for ResolvableName
impl From<Name> for ResolvableName
sourcefn from(name: Name) -> ResolvableName
fn from(name: Name) -> ResolvableName
Performs the conversion.
sourceimpl From<Operator> for ResolvableName
impl From<Operator> for ResolvableName
sourcefn from(op: Operator) -> ResolvableName
fn from(op: Operator) -> ResolvableName
Performs the conversion.
sourceimpl From<UnaryOp> for ResolvableName
impl From<UnaryOp> for ResolvableName
sourcefn from(op: UnaryOp) -> ResolvableName
fn from(op: UnaryOp) -> ResolvableName
Performs the conversion.
sourceimpl From<char> for ResolvableName
impl From<char> for ResolvableName
sourcefn from(c: char) -> ResolvableName
fn from(c: char) -> ResolvableName
Performs the conversion.
sourceimpl Hash for ResolvableName
impl Hash for ResolvableName
sourceimpl PartialEq<ResolvableName> for ResolvableName
impl PartialEq<ResolvableName> for ResolvableName
sourcefn eq(&self, other: &ResolvableName) -> bool
fn eq(&self, other: &ResolvableName) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ResolvableName) -> bool
fn ne(&self, other: &ResolvableName) -> bool
This method tests for !=
.
impl Copy for ResolvableName
impl Eq for ResolvableName
impl StructuralEq for ResolvableName
impl StructuralPartialEq for ResolvableName
Auto Trait Implementations
impl RefUnwindSafe for ResolvableName
impl Send for ResolvableName
impl Sync for ResolvableName
impl Unpin for ResolvableName
impl UnwindSafe for ResolvableName
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