Struct moore_vhdl::hir::TypeDecl2
source · [−]pub struct TypeDecl2<'t> { /* private fields */ }
Expand description
A type declaration.
See IEEE 1076-2008 section 6.2.
Implementations
sourceimpl<'t> TypeDecl2<'t>
impl<'t> TypeDecl2<'t>
sourcepub fn declared_type<C>(&self, ctx: C) -> Result<&'t dyn Type> where
C: ExprContext<'t> + Copy,
pub fn declared_type<C>(&self, ctx: C) -> Result<&'t dyn Type> where
C: ExprContext<'t> + Copy,
Return the declared type.
This function maps the type declaration data to an actual Type
.
Trait Implementations
sourceimpl<'t> Decl2<'t> for TypeDecl2<'t>
impl<'t> Decl2<'t> for TypeDecl2<'t>
sourcefn name(&self) -> Spanned<ResolvableName>
fn name(&self) -> Spanned<ResolvableName>
The name of the declared item.
sourceimpl<'t> FromAst<'t> for TypeDecl2<'t>
impl<'t> FromAst<'t> for TypeDecl2<'t>
type AllocInput = &'t TypeDecl
type LatentInput = Self::AllocInput
type Context = AllocContext<'t>
type Latent = &'t Slot<'t, Self>
sourcefn alloc_slot(
ast: Self::AllocInput,
context: Self::Context
) -> Result<Self::Latent>
fn alloc_slot(
ast: Self::AllocInput,
context: Self::Context
) -> Result<Self::Latent>
Schedule construction of an HIR node from an AST node. Read more
sourcefn from_ast(ast: Self::LatentInput, context: Self::Context) -> Result<Self>
fn from_ast(ast: Self::LatentInput, context: Self::Context) -> Result<Self>
Construct an HIR node from an AST node.
Auto Trait Implementations
impl<'t> !RefUnwindSafe for TypeDecl2<'t>
impl<'t> !Send for TypeDecl2<'t>
impl<'t> !Sync for TypeDecl2<'t>
impl<'t> Unpin for TypeDecl2<'t>
impl<'t> !UnwindSafe for TypeDecl2<'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