[][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.

Methods

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, C: DiagEmitter, S> DefSpecificTermContext<'t, Def2<'t>> for TermContext<C, S, 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.

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

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

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

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

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.