Enum moore_svlog::ast::StmtKind[][src]

pub enum StmtKind<'a> {
Show 26 variants NullStmt, SequentialBlock(Vec<Node<'a, StmtData<'a>>, Global>), ParallelBlock(Vec<Node<'a, StmtData<'a>>, Global>, JoinKind), IfStmt { up: Option<UniquePriority>, cond: Node<'a, ExprData<'a>>, main_stmt: Box<Node<'a, StmtData<'a>>, Global>, else_stmt: Option<Box<Node<'a, StmtData<'a>>, Global>>, }, BlockingAssignStmt { lhs: Node<'a, ExprData<'a>>, rhs: Node<'a, ExprData<'a>>, op: AssignOp, }, NonblockingAssignStmt { lhs: Node<'a, ExprData<'a>>, rhs: Node<'a, ExprData<'a>>, delay: Option<DelayControl<'a>>, event: Option<()>, }, TimedStmt(TimingControl<'a>, Box<Node<'a, StmtData<'a>>, Global>), CaseStmt { up: Option<UniquePriority>, kind: CaseKind, expr: Node<'a, ExprData<'a>>, mode: CaseMode, items: Vec<CaseItem<'a>, Global>, }, ForeverStmt(Box<Node<'a, StmtData<'a>>, Global>), RepeatStmt(Node<'a, ExprData<'a>>, Box<Node<'a, StmtData<'a>>, Global>), WhileStmt(Node<'a, ExprData<'a>>, Box<Node<'a, StmtData<'a>>, Global>), DoStmt(Box<Node<'a, StmtData<'a>>, Global>, Node<'a, ExprData<'a>>), ForStmt(Box<Node<'a, StmtData<'a>>, Global>, Node<'a, ExprData<'a>>, Node<'a, ExprData<'a>>, Box<Node<'a, StmtData<'a>>, Global>), ForeachStmt(Node<'a, ExprData<'a>>, Vec<Node<'a, ForeachIndexData>, Global>, Box<Node<'a, StmtData<'a>>, Global>), ExprStmt(Node<'a, ExprData<'a>>), VarDeclStmt(Node<'a, VarDeclData<'a>>), GenvarDeclStmt(Vec<Node<'a, GenvarDeclData<'a>>, Global>), ContinueStmt, BreakStmt, ReturnStmt(Option<Node<'a, ExprData<'a>>>), ImportStmt(Node<'a, ImportDeclData<'a>>), AssertionStmt(Box<Assertion<'a>, Global>), WaitExprStmt(Node<'a, ExprData<'a>>, Box<Node<'a, StmtData<'a>>, Global>), WaitForkStmt, DisableForkStmt, DisableStmt(Name),
}
Expand description

The different kinds of statement.

Variants

NullStmt
SequentialBlock(Vec<Node<'a, StmtData<'a>>, Global>)

Tuple Fields of SequentialBlock

0: Vec<Node<'a, StmtData<'a>>, Global>
ParallelBlock(Vec<Node<'a, StmtData<'a>>, Global>, JoinKind)

Tuple Fields of ParallelBlock

0: Vec<Node<'a, StmtData<'a>>, Global>1: JoinKind
IfStmt

Fields of IfStmt

up: Option<UniquePriority>cond: Node<'a, ExprData<'a>>main_stmt: Box<Node<'a, StmtData<'a>>, Global>else_stmt: Option<Box<Node<'a, StmtData<'a>>, Global>>
BlockingAssignStmt

Fields of BlockingAssignStmt

lhs: Node<'a, ExprData<'a>>rhs: Node<'a, ExprData<'a>>op: AssignOp
NonblockingAssignStmt

Fields of NonblockingAssignStmt

lhs: Node<'a, ExprData<'a>>rhs: Node<'a, ExprData<'a>>delay: Option<DelayControl<'a>>event: Option<()>
TimedStmt(TimingControl<'a>, Box<Node<'a, StmtData<'a>>, Global>)

Tuple Fields of TimedStmt

0: TimingControl<'a>1: Box<Node<'a, StmtData<'a>>, Global>
CaseStmt

Fields of CaseStmt

up: Option<UniquePriority>kind: CaseKindexpr: Node<'a, ExprData<'a>>mode: CaseModeitems: Vec<CaseItem<'a>, Global>
ForeverStmt(Box<Node<'a, StmtData<'a>>, Global>)

Tuple Fields of ForeverStmt

0: Box<Node<'a, StmtData<'a>>, Global>
RepeatStmt(Node<'a, ExprData<'a>>, Box<Node<'a, StmtData<'a>>, Global>)

Tuple Fields of RepeatStmt

0: Node<'a, ExprData<'a>>1: Box<Node<'a, StmtData<'a>>, Global>
WhileStmt(Node<'a, ExprData<'a>>, Box<Node<'a, StmtData<'a>>, Global>)

Tuple Fields of WhileStmt

0: Node<'a, ExprData<'a>>1: Box<Node<'a, StmtData<'a>>, Global>
DoStmt(Box<Node<'a, StmtData<'a>>, Global>, Node<'a, ExprData<'a>>)

Tuple Fields of DoStmt

0: Box<Node<'a, StmtData<'a>>, Global>1: Node<'a, ExprData<'a>>
ForStmt(Box<Node<'a, StmtData<'a>>, Global>, Node<'a, ExprData<'a>>, Node<'a, ExprData<'a>>, Box<Node<'a, StmtData<'a>>, Global>)

Tuple Fields of ForStmt

0: Box<Node<'a, StmtData<'a>>, Global>1: Node<'a, ExprData<'a>>2: Node<'a, ExprData<'a>>3: Box<Node<'a, StmtData<'a>>, Global>
ForeachStmt(Node<'a, ExprData<'a>>, Vec<Node<'a, ForeachIndexData>, Global>, Box<Node<'a, StmtData<'a>>, Global>)

Tuple Fields of ForeachStmt

0: Node<'a, ExprData<'a>>1: Vec<Node<'a, ForeachIndexData>, Global>2: Box<Node<'a, StmtData<'a>>, Global>
ExprStmt(Node<'a, ExprData<'a>>)

Tuple Fields of ExprStmt

0: Node<'a, ExprData<'a>>
VarDeclStmt(Node<'a, VarDeclData<'a>>)

Tuple Fields of VarDeclStmt

0: Node<'a, VarDeclData<'a>>
GenvarDeclStmt(Vec<Node<'a, GenvarDeclData<'a>>, Global>)

Tuple Fields of GenvarDeclStmt

0: Vec<Node<'a, GenvarDeclData<'a>>, Global>
ContinueStmt
BreakStmt
ReturnStmt(Option<Node<'a, ExprData<'a>>>)

Tuple Fields of ReturnStmt

0: Option<Node<'a, ExprData<'a>>>
ImportStmt(Node<'a, ImportDeclData<'a>>)

Tuple Fields of ImportStmt

0: Node<'a, ImportDeclData<'a>>
AssertionStmt(Box<Assertion<'a>, Global>)

Tuple Fields of AssertionStmt

0: Box<Assertion<'a>, Global>
WaitExprStmt(Node<'a, ExprData<'a>>, Box<Node<'a, StmtData<'a>>, Global>)

Tuple Fields of WaitExprStmt

0: Node<'a, ExprData<'a>>1: Box<Node<'a, StmtData<'a>>, Global>
WaitForkStmt
DisableForkStmt
DisableStmt(Name)

Tuple Fields of DisableStmt

0: Name

Trait Implementations

Walk a visitor over the contents of self.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Apply a function to each child node.

Apply a function to this node.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_stmt_kind(self)
  • self.accept(visitor)
  • visitor.post_visit_stmt_kind(self);

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.