Enum moore_vhdl_syntax::ast::StmtData
[−]
[src]
pub enum StmtData { 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
Fields of WaitStmt
on: Option<Spanned<Vec<CompoundName>>> | |
until: Option<Expr> | |
time: Option<Expr> |
AssertStmt
Fields of AssertStmt
cond: Expr | |
report: Option<Expr> | |
severity: Option<Expr> |
ReportStmt
Fields of ReportStmt
msg: Expr | |
severity: Option<Expr> |
IfStmt
Fields of IfStmt
conds: Vec<(Expr, StmtBody)> | |
alt: Option<StmtBody> |
CaseStmt
Fields of CaseStmt
qm: bool | |
switch: Expr | |
cases: Vec<(Choices, StmtBody)> |
LoopStmt
Fields of LoopStmt
scheme: LoopScheme | |
body: StmtBody |
NexitStmt
Fields of NexitStmt
mode: NexitMode | |
target: Option<Spanned<Name>> | |
cond: Option<Expr> |
ReturnStmt(Option<Expr>)
NullStmt
IfGenStmt
Fields of IfGenStmt
conds: Vec<(Expr, GenBody)> | |
alt: Option<GenBody> |
CaseGenStmt
Fields of CaseGenStmt
switch: Expr | |
cases: Vec<(Choices, GenBody)> |
ForGenStmt
Fields of ForGenStmt
param: Spanned<Name> | |
range: Expr | |
body: GenBody |
BlockStmt
Fields of BlockStmt
guard: Option<Expr> | |
decls: Vec<DeclItem> | |
stmts: Vec<Stmt> |
ProcStmt
Fields of ProcStmt
sensitivity: Option<Sensitivity> | |
decls: Vec<DeclItem> | |
stmts: Vec<Stmt> | |
postponed: bool |
AssignStmt
Fields of AssignStmt
target: Spanned<AssignTarget> | |
kind: AssignKind | |
guarded: bool | |
mode: Spanned<AssignMode> |
SelectAssignStmt
Fields of SelectAssignStmt
select: Expr | |
qm: bool | |
target: Spanned<AssignTarget> | |
kind: AssignKind | |
guarded: bool | |
mode: SelectAssignMode | |
waves: Vec<SelectWave> |
InstOrCallStmt
Fields of InstOrCallStmt
target: Option<InstTarget> | |
name: CompoundName | |
generics: Option<ParenElems> | |
ports: Option<ParenElems> |
Trait Implementations
impl Clone for StmtData
[src]
fn clone(&self) -> StmtData
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for StmtData
[src]
impl PartialEq for StmtData
[src]
fn eq(&self, __arg_0: &StmtData) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &StmtData) -> bool
[src]
This method tests for !=
.
impl Eq for StmtData
[src]
impl Encodable for StmtData
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
[src]
Serialize a value using an Encoder
.
impl Decodable for StmtData
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<StmtData, __D::Error>
[src]
Deserialize a value using a Decoder
.