[−][src]Enum moore_vhdl::score::ResolvableName
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]
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 Clone for ResolvableName
[src]
pub fn clone(&self) -> ResolvableName
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
pub fn from(op: BinaryOp) -> ResolvableName
[src]
impl From<Name> for ResolvableName
[src]
pub fn from(name: Name) -> ResolvableName
[src]
impl From<Operator> for ResolvableName
[src]
pub fn from(op: Operator) -> ResolvableName
[src]
impl From<UnaryOp> for ResolvableName
[src]
pub fn from(op: UnaryOp) -> ResolvableName
[src]
impl From<char> for ResolvableName
[src]
pub fn from(c: char) -> ResolvableName
[src]
impl Hash for ResolvableName
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ResolvableName> for ResolvableName
[src]
pub fn eq(&self, other: &ResolvableName) -> bool
[src]
pub fn ne(&self, other: &ResolvableName) -> bool
[src]
impl StructuralEq for ResolvableName
[src]
impl StructuralPartialEq for ResolvableName
[src]
Auto Trait Implementations
impl RefUnwindSafe for ResolvableName
[src]
impl Send for ResolvableName
[src]
impl Sync for ResolvableName
[src]
impl Unpin for ResolvableName
[src]
impl UnwindSafe for ResolvableName
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,