[][src]Enum moore_vhdl::score::ResolvableName

pub enum ResolvableName {
    Ident(Name),
    Bit(char),
    Operator(Operator),
}

A name that can be resolved in a scope.

Variants

Ident(Name)
Bit(char)
Operator(Operator)

Implementations

impl ResolvableName[src]

pub fn from_primary_name<C>(
    primary: &PrimaryName,
    context: C
) -> Result<Spanned<ResolvableName>> where
    C: DiagEmitter
[src]

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.

pub fn is_ident(&self) -> bool[src]

Check whether this name is an identifier.

pub fn is_bit(&self) -> bool[src]

Check whether this name is a bit.

pub fn is_operator(&self) -> bool[src]

Check whether this name is an operator.

Trait Implementations

impl Clone for ResolvableName[src]

impl Copy for ResolvableName[src]

impl Debug for ResolvableName[src]

impl Display for ResolvableName[src]

impl Eq for ResolvableName[src]

impl From<BinaryOp> for ResolvableName[src]

impl From<Name> for ResolvableName[src]

impl From<Operator> for ResolvableName[src]

impl From<UnaryOp> for ResolvableName[src]

impl From<char> for ResolvableName[src]

impl Hash for ResolvableName[src]

impl PartialEq<ResolvableName> for ResolvableName[src]

impl StructuralEq for ResolvableName[src]

impl StructuralPartialEq for ResolvableName[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.