pub enum Statement {
Show 16 variants
Block(Block),
Break(Break),
Continue(Continue),
DoWhileStatement(Box<DoWhileStatement>),
EmitStatement(EmitStatement),
ExpressionStatement(ExpressionStatement),
ForStatement(ForStatement),
IfStatement(IfStatement),
InlineAssembly(InlineAssembly),
PlaceholderStatement(PlaceholderStatement),
Return(Return),
RevertStatement(RevertStatement),
TryStatement(TryStatement),
UncheckedBlock(UncheckedBlock),
VariableDeclarationStatement(VariableDeclarationStatement),
WhileStatement(WhileStatement),
}
Expand description
Statement
JSON schema
{
"anyOf": [
{
"$ref": "#/definitions/Block"
},
{
"$ref": "#/definitions/Break"
},
{
"$ref": "#/definitions/Continue"
},
{
"$ref": "#/definitions/DoWhileStatement"
},
{
"$ref": "#/definitions/EmitStatement"
},
{
"$ref": "#/definitions/ExpressionStatement"
},
{
"$ref": "#/definitions/ForStatement"
},
{
"$ref": "#/definitions/IfStatement"
},
{
"$ref": "#/definitions/InlineAssembly"
},
{
"$ref": "#/definitions/PlaceholderStatement"
},
{
"$ref": "#/definitions/Return"
},
{
"$ref": "#/definitions/RevertStatement"
},
{
"$ref": "#/definitions/TryStatement"
},
{
"$ref": "#/definitions/UncheckedBlock"
},
{
"$ref": "#/definitions/VariableDeclarationStatement"
},
{
"$ref": "#/definitions/WhileStatement"
}
]
}
Variants§
Block(Block)
Break(Break)
Continue(Continue)
DoWhileStatement(Box<DoWhileStatement>)
EmitStatement(EmitStatement)
ExpressionStatement(ExpressionStatement)
ForStatement(ForStatement)
IfStatement(IfStatement)
InlineAssembly(InlineAssembly)
PlaceholderStatement(PlaceholderStatement)
Return(Return)
RevertStatement(RevertStatement)
TryStatement(TryStatement)
UncheckedBlock(UncheckedBlock)
VariableDeclarationStatement(VariableDeclarationStatement)
WhileStatement(WhileStatement)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Statement
impl<'de> Deserialize<'de> for Statement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Box<DoWhileStatement>> for Statement
impl From<Box<DoWhileStatement>> for Statement
Source§fn from(value: Box<DoWhileStatement>) -> Self
fn from(value: Box<DoWhileStatement>) -> Self
Converts to this type from the input type.
Source§impl From<EmitStatement> for Statement
impl From<EmitStatement> for Statement
Source§fn from(value: EmitStatement) -> Self
fn from(value: EmitStatement) -> Self
Converts to this type from the input type.
Source§impl From<ExpressionStatement> for Statement
impl From<ExpressionStatement> for Statement
Source§fn from(value: ExpressionStatement) -> Self
fn from(value: ExpressionStatement) -> Self
Converts to this type from the input type.
Source§impl From<ForStatement> for Statement
impl From<ForStatement> for Statement
Source§fn from(value: ForStatement) -> Self
fn from(value: ForStatement) -> Self
Converts to this type from the input type.
Source§impl From<IfStatement> for Statement
impl From<IfStatement> for Statement
Source§fn from(value: IfStatement) -> Self
fn from(value: IfStatement) -> Self
Converts to this type from the input type.
Source§impl From<InlineAssembly> for Statement
impl From<InlineAssembly> for Statement
Source§fn from(value: InlineAssembly) -> Self
fn from(value: InlineAssembly) -> Self
Converts to this type from the input type.
Source§impl From<PlaceholderStatement> for Statement
impl From<PlaceholderStatement> for Statement
Source§fn from(value: PlaceholderStatement) -> Self
fn from(value: PlaceholderStatement) -> Self
Converts to this type from the input type.
Source§impl From<RevertStatement> for Statement
impl From<RevertStatement> for Statement
Source§fn from(value: RevertStatement) -> Self
fn from(value: RevertStatement) -> Self
Converts to this type from the input type.
Source§impl From<Statement> for DoWhileStatementBody
impl From<Statement> for DoWhileStatementBody
Source§impl From<Statement> for IfStatementFalseBody
impl From<Statement> for IfStatementFalseBody
Source§impl From<Statement> for IfStatementTrueBody
impl From<Statement> for IfStatementTrueBody
Source§impl From<Statement> for WhileStatementBody
impl From<Statement> for WhileStatementBody
Source§impl From<TryStatement> for Statement
impl From<TryStatement> for Statement
Source§fn from(value: TryStatement) -> Self
fn from(value: TryStatement) -> Self
Converts to this type from the input type.
Source§impl From<UncheckedBlock> for Statement
impl From<UncheckedBlock> for Statement
Source§fn from(value: UncheckedBlock) -> Self
fn from(value: UncheckedBlock) -> Self
Converts to this type from the input type.
Source§impl From<VariableDeclarationStatement> for Statement
impl From<VariableDeclarationStatement> for Statement
Source§fn from(value: VariableDeclarationStatement) -> Self
fn from(value: VariableDeclarationStatement) -> Self
Converts to this type from the input type.
Source§impl From<WhileStatement> for Statement
impl From<WhileStatement> for Statement
Source§fn from(value: WhileStatement) -> Self
fn from(value: WhileStatement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
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