Enum syn_solidity::YulStmt
source · pub enum YulStmt {
Block(YulBlock),
Decl(YulVarDecl),
Assign(YulVarAssign),
Call(YulFnCall),
If(YulIf),
For(YulFor),
Switch(YulSwitch),
Leave(leave),
Break(Break),
Continue(Continue),
FunctionDef(YulFunctionDef),
}
Expand description
A Yul statement.
Solidity Reference: https://docs.soliditylang.org/en/latest/grammar.html#a4.SolidityParser.yulStatement
Variants§
Block(YulBlock)
A Yul blocked scope: { ... }
.
Decl(YulVarDecl)
A variable declaration statement: let x := 0
.
Assign(YulVarAssign)
A variable assignment statement: x := 1
.
Call(YulFnCall)
A function call statement: foo(a, b)
.
If(YulIf)
A if statement: if lt(a, b) { ... }
.
For(YulFor)
A for statement: for {let i := 0} lt(i,10) {i := add(i,1)} { ... }
.
Switch(YulSwitch)
A switch statement: switch expr case 0 { ... } default { ... }
.
Leave(leave)
A leave statement: leave
.
Break(Break)
A break statement: break
.
Continue(Continue)
A continue statement: continue
.
FunctionDef(YulFunctionDef)
A function definition statement: function f() { ... }
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for YulStmt
impl !Send for YulStmt
impl !Sync for YulStmt
impl Unpin for YulStmt
impl UnwindSafe for YulStmt
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more