[][src]Enum moore_vhdl::scope2::Def2

pub enum Def2<'t> {
    Node(&'t dyn LatentNode<'t, dyn Node<'t>>),
    Lib(&'t Library<'t>),
    Pkg(&'t dyn LatentNode<'t, Package2<'t>>),
    Type(&'t dyn LatentNode<'t, TypeDecl2<'t>>),
    Enum(TypeVariantDef<'t>),
    Unit(TypeVariantDef<'t>),
}

A definition.

Variants

Node(&'t dyn LatentNode<'t, dyn Node<'t>>)

Any node.

Lib(&'t Library<'t>)

A library.

Pkg(&'t dyn LatentNode<'t, Package2<'t>>)

A package.

Type(&'t dyn LatentNode<'t, TypeDecl2<'t>>)

A type declaration.

Enum(TypeVariantDef<'t>)

An enumeration type variant.

Unit(TypeVariantDef<'t>)

A physical type unit.

Implementations

impl<'t> Def2<'t>[src]

pub fn desc_kind(&self) -> String[src]

Describe the kind of node the definition points to.

Trait Implementations

impl<'t> Clone for Def2<'t>[src]

impl<'t> Copy for Def2<'t>[src]

impl<'t> Debug for Def2<'t>[src]

impl<'t, C: DiagEmitter, S> DefSpecificTermContext<'t, Def2<'t>> for TermContext<C, S, Def2<'t>>[src]

impl<'t> Eq for Def2<'t>[src]

impl<'t> PartialEq<Def2<'t>> for Def2<'t>[src]

impl<'t> ScopeSpecificTermContext<'t, &'t ScopeData<'t>, Def2<'t>> for TermContext<AllocContext<'t>, &'t ScopeData<'t>, Def2<'t>>[src]

fn termify_name_in_scope(
    &self,
    name: Spanned<ResolvableName>,
    scope: &'t ScopeData<'t>
) -> Result<Spanned<Term<'t>>>
[src]

Map a resolvable name to a term, resolving it within a scope.

Auto Trait Implementations

impl<'t> !RefUnwindSafe for Def2<'t>

impl<'t> !Send for Def2<'t>

impl<'t> !Sync for Def2<'t>

impl<'t> Unpin for Def2<'t>

impl<'t> !UnwindSafe for Def2<'t>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.