Enum moore_vhdl_syntax::ast::StmtData
source · [−]pub enum StmtData {
Show 17 variants
WaitStmt {
on: Option<Spanned<Vec<CompoundName>>>,
until: Option<Expr>,
time: Option<Expr>,
},
AssertStmt {
cond: Expr,
report: Option<Expr>,
severity: Option<Expr>,
},
ReportStmt {
msg: Expr,
severity: Option<Expr>,
},
IfStmt {
conds: Vec<(Expr, StmtBody)>,
alt: Option<StmtBody>,
},
CaseStmt {
qm: bool,
switch: Expr,
cases: Vec<(Choices, StmtBody)>,
},
LoopStmt {
scheme: LoopScheme,
body: StmtBody,
},
NexitStmt {
mode: NexitMode,
target: Option<Spanned<Name>>,
cond: Option<Expr>,
},
ReturnStmt(Option<Expr>),
NullStmt,
IfGenStmt {
conds: Vec<(Expr, GenBody)>,
alt: Option<GenBody>,
},
CaseGenStmt {
switch: Expr,
cases: Vec<(Choices, GenBody)>,
},
ForGenStmt {
param: Spanned<Name>,
range: Expr,
body: GenBody,
},
BlockStmt {
guard: Option<Expr>,
decls: Vec<DeclItem>,
stmts: Vec<Stmt>,
},
ProcStmt {
sensitivity: Option<Sensitivity>,
decls: Vec<DeclItem>,
stmts: Vec<Stmt>,
postponed: bool,
},
AssignStmt {
target: Spanned<AssignTarget>,
kind: AssignKind,
guarded: bool,
mode: Spanned<AssignMode>,
},
SelectAssignStmt {
select: Expr,
qm: bool,
target: Spanned<AssignTarget>,
kind: AssignKind,
guarded: bool,
mode: SelectAssignMode,
waves: Vec<SelectWave>,
},
InstOrCallStmt {
target: Option<InstTarget>,
name: CompoundName,
generics: Option<ParenElems>,
ports: Option<ParenElems>,
},
}
Variants
WaitStmt
AssertStmt
ReportStmt
IfStmt
CaseStmt
LoopStmt
NexitStmt
ReturnStmt(Option<Expr>)
NullStmt
IfGenStmt
CaseGenStmt
ForGenStmt
BlockStmt
ProcStmt
AssignStmt
SelectAssignStmt
Fields
select: Expr
qm: bool
target: Spanned<AssignTarget>
kind: AssignKind
guarded: bool
mode: SelectAssignMode
waves: Vec<SelectWave>
InstOrCallStmt
Fields
target: Option<InstTarget>
name: CompoundName
generics: Option<ParenElems>
ports: Option<ParenElems>
Trait Implementations
impl Eq for StmtData
impl StructuralEq for StmtData
impl StructuralPartialEq for StmtData
Auto Trait Implementations
impl RefUnwindSafe for StmtData
impl Send for StmtData
impl Sync for StmtData
impl Unpin for StmtData
impl UnwindSafe for StmtData
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
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