[−][src]Enum moore_vhdl::score::ResolvableName
A name that can be resolved in a scope.
Variants
Ident(Name)
Bit(char)
Operator(Operator)
Methods
impl ResolvableName
[src]
pub fn from_primary_name<C>(
primary: &PrimaryName,
context: C
) -> Result<Spanned<ResolvableName>> where
C: DiagEmitter,
[src]
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.
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 From<Name> for ResolvableName
[src]
fn from(name: Name) -> ResolvableName
[src]
impl From<char> for ResolvableName
[src]
fn from(c: char) -> ResolvableName
[src]
impl From<Operator> for ResolvableName
[src]
fn from(op: Operator) -> ResolvableName
[src]
impl From<UnaryOp> for ResolvableName
[src]
fn from(op: UnaryOp) -> ResolvableName
[src]
impl From<BinaryOp> for ResolvableName
[src]
fn from(op: BinaryOp) -> ResolvableName
[src]
impl Clone for ResolvableName
[src]
fn clone(&self) -> ResolvableName
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ResolvableName
[src]
impl Eq for ResolvableName
[src]
impl PartialEq<ResolvableName> for ResolvableName
[src]
fn eq(&self, other: &ResolvableName) -> bool
[src]
fn ne(&self, other: &ResolvableName) -> bool
[src]
impl Display for ResolvableName
[src]
impl Debug for ResolvableName
[src]
impl Hash for ResolvableName
[src]
Auto Trait Implementations
impl Send for ResolvableName
impl Sync for ResolvableName
impl Unpin for ResolvableName
impl UnwindSafe for ResolvableName
impl RefUnwindSafe for ResolvableName
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,