Enum moore_vhdl::scope2::Def2
source · [−]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>),
}
Expand description
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
Trait Implementations
sourceimpl<'t, C: DiagEmitter, S> DefSpecificTermContext<'t, Def2<'t>> for TermContext<C, S, Def2<'t>>
impl<'t, C: DiagEmitter, S> DefSpecificTermContext<'t, Def2<'t>> for TermContext<C, S, Def2<'t>>
sourceimpl<'t> ScopeSpecificTermContext<'t, &'t ScopeData<'t>, Def2<'t>> for TermContext<AllocContext<'t>, &'t ScopeData<'t>, Def2<'t>>
impl<'t> ScopeSpecificTermContext<'t, &'t ScopeData<'t>, Def2<'t>> for TermContext<AllocContext<'t>, &'t ScopeData<'t>, Def2<'t>>
sourcefn termify_name_in_scope(
&self,
name: Spanned<ResolvableName>,
scope: &'t ScopeData<'t>
) -> Result<Spanned<Term<'t>>>
fn termify_name_in_scope(
&self,
name: Spanned<ResolvableName>,
scope: &'t ScopeData<'t>
) -> Result<Spanned<Term<'t>>>
Map a resolvable name to a term, resolving it within a scope.
fn maybe_selectable_scope(&self, term: &Term<'t>) -> Option<&'t ScopeData<'t>>
impl<'t> Copy for Def2<'t>
impl<'t> Eq for Def2<'t>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more