pub struct StmtTry {
pub try_token: Try,
pub expr: Box<Expr>,
pub returns: Option<Returns>,
pub block: Block,
pub catch: Vec<CatchClause>,
}
Expand description
A try statement: try fooBar(42) catch { ... }
.
Solidity reference: https://docs.soliditylang.org/en/latest/grammar.html#a4.SolidityParser.tryStatement
Fields§
§try_token: Try
§expr: Box<Expr>
§returns: Option<Returns>
§block: Block
The try block.
catch: Vec<CatchClause>
The list of catch clauses. Cannot be parsed empty.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StmtTry
impl RefUnwindSafe for StmtTry
impl !Send for StmtTry
impl !Sync for StmtTry
impl Unpin for StmtTry
impl UnwindSafe for StmtTry
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