Struct syn_solidity::StmtRevert
source · pub struct StmtRevert {
pub revert_token: revert,
pub expr: Expr,
pub semi_token: Semi,
}
Expand description
A revert statement: revert("error");
.
Solidity Reference: https://docs.soliditylang.org/en/latest/grammar.html#a4.SolidityParser.revertStatement
Fields§
§revert_token: revert
§expr: Expr
§semi_token: Semi
Trait Implementations§
source§impl Clone for StmtRevert
impl Clone for StmtRevert
source§fn clone(&self) -> StmtRevert
fn clone(&self) -> StmtRevert
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StmtRevert
impl Debug for StmtRevert
source§impl Parse for StmtRevert
impl Parse for StmtRevert
fn parse(input: ParseStream<'_>) -> Result<Self>
source§impl Spanned for StmtRevert
impl Spanned for StmtRevert
source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.Auto Trait Implementations§
impl RefUnwindSafe for StmtRevert
impl !Send for StmtRevert
impl !Sync for StmtRevert
impl Unpin for StmtRevert
impl UnwindSafe for StmtRevert
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