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 for CatchClause
impl PartialEq 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 ==
.impl Eq for CatchClause
impl StructuralPartialEq for CatchClause
Auto Trait Implementations§
impl Freeze for CatchClause
impl RefUnwindSafe for CatchClause
impl Send for CatchClause
impl Sync for CatchClause
impl Unpin for CatchClause
impl UnwindSafe for CatchClause
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more