Struct moore_vhdl::hir::Stmt
source · [−]pub struct Stmt<T> {
pub parent: ScopeRef,
pub span: Span,
pub label: Option<Spanned<Name>>,
pub stmt: T,
}
Expand description
A statement.
See IEEE 1076-2008 section 10.1.
Fields
parent: ScopeRef
The parent scope.
span: Span
The span this statement covers.
label: Option<Spanned<Name>>
The optional label.
stmt: T
The inner statement.
Trait Implementations
sourceimpl<'a> Alloc<'a, 'a, Stmt<AssertStmt>> for Arenas
impl<'a> Alloc<'a, 'a, Stmt<AssertStmt>> for Arenas
sourcefn alloc(&'a self, value: Stmt<AssertStmt>) -> &'a mut Stmt<AssertStmt>
fn alloc(&'a self, value: Stmt<AssertStmt>) -> &'a mut Stmt<AssertStmt>
Allocate a value of type T
.
sourceimpl<'a> Alloc<'a, 'a, Stmt<ReportStmt>> for Arenas
impl<'a> Alloc<'a, 'a, Stmt<ReportStmt>> for Arenas
sourcefn alloc(&'a self, value: Stmt<ReportStmt>) -> &'a mut Stmt<ReportStmt>
fn alloc(&'a self, value: Stmt<ReportStmt>) -> &'a mut Stmt<ReportStmt>
Allocate a value of type T
.
sourceimpl<'a> Alloc<'a, 'a, Stmt<ReturnStmt>> for Arenas
impl<'a> Alloc<'a, 'a, Stmt<ReturnStmt>> for Arenas
sourcefn alloc(&'a self, value: Stmt<ReturnStmt>) -> &'a mut Stmt<ReturnStmt>
fn alloc(&'a self, value: Stmt<ReturnStmt>) -> &'a mut Stmt<ReturnStmt>
Allocate a value of type T
.
sourceimpl<'a> Alloc<'a, 'a, Stmt<VarAssignStmt>> for Arenas
impl<'a> Alloc<'a, 'a, Stmt<VarAssignStmt>> for Arenas
sourcefn alloc(&'a self, value: Stmt<VarAssignStmt>) -> &'a mut Stmt<VarAssignStmt>
fn alloc(&'a self, value: Stmt<VarAssignStmt>) -> &'a mut Stmt<VarAssignStmt>
Allocate a value of type T
.
Auto Trait Implementations
impl<T> RefUnwindSafe for Stmt<T> where
T: RefUnwindSafe,
impl<T> Send for Stmt<T> where
T: Send,
impl<T> Sync for Stmt<T> where
T: Sync,
impl<T> Unpin for Stmt<T> where
T: Unpin,
impl<T> UnwindSafe for Stmt<T> where
T: UnwindSafe,
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