Struct resast::stmt::CatchClause
source · [−]Expand description
The error handling part of a TryStmt
Fields
param: Option<Pat<'a>>
body: BlockStmt<'a>
Trait Implementations
sourceimpl<'a> Clone for CatchClause<'a>
impl<'a> Clone for CatchClause<'a>
sourcefn clone(&self) -> CatchClause<'a>
fn clone(&self) -> CatchClause<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for CatchClause<'a>
impl<'a> Debug for CatchClause<'a>
sourceimpl<'a> From<CatchClause<'a>> for CatchClause<'a>
impl<'a> From<CatchClause<'a>> for CatchClause<'a>
sourcefn from(other: CatchClause<'a>) -> Self
fn from(other: CatchClause<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> PartialEq<CatchClause<'a>> for CatchClause<'a>
impl<'a> PartialEq<CatchClause<'a>> for CatchClause<'a>
sourcefn eq(&self, other: &CatchClause<'a>) -> bool
fn eq(&self, other: &CatchClause<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl<'a> StructuralPartialEq for CatchClause<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CatchClause<'a>
impl<'a> Send for CatchClause<'a>
impl<'a> Sync for CatchClause<'a>
impl<'a> Unpin for CatchClause<'a>
impl<'a> UnwindSafe for CatchClause<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more