Enum solang_parser::pt::CatchClause
source · pub enum CatchClause {
Simple(Loc, Option<Parameter>, Statement),
Named(Loc, Identifier, Parameter, Statement),
}Expand description
A catch clause. See Statement.
Variants§
Simple(Loc, Option<Parameter>, Statement)
catch [(<1>)] <2>
Named(Loc, Identifier, Parameter, Statement)
catch <1> (<2>) <3>
Trait Implementations§
source§impl Clone for CatchClause
impl Clone for CatchClause
source§fn clone(&self) -> CatchClause
fn clone(&self) -> CatchClause
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 CodeLocation for CatchClause
impl CodeLocation for CatchClause
source§impl Debug for CatchClause
impl Debug for CatchClause
source§impl Display for CatchClause
impl Display for CatchClause
source§impl OptionalCodeLocation for CatchClause
impl OptionalCodeLocation for CatchClause
source§impl PartialEq<CatchClause> for CatchClause
impl PartialEq<CatchClause> for CatchClause
source§fn eq(&self, other: &CatchClause) -> bool
fn eq(&self, other: &CatchClause) -> bool
This method tests for
self and other values to be equal, and is used
by ==.