Struct swc_ecma_ast::CatchClause
source · [−]Fields
span: Span
param: Option<Pat>
es2019
The param is null if the catch binding is omitted. E.g., try { foo() } catch { bar() }
body: BlockStmt
Trait Implementations
sourceimpl Clone for CatchClause
impl Clone for CatchClause
sourcefn clone(&self) -> CatchClause
fn clone(&self) -> CatchClause
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 moresourceimpl Debug for CatchClause
impl Debug for CatchClause
sourceimpl<'de> Deserialize<'de> for CatchClause
impl<'de> Deserialize<'de> for CatchClause
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl EqIgnoreSpan for CatchClause
impl EqIgnoreSpan for CatchClause
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl Hash for CatchClause
impl Hash for CatchClause
sourceimpl PartialEq<CatchClause> for CatchClause
impl PartialEq<CatchClause> for CatchClause
sourcefn eq(&self, other: &CatchClause) -> bool
fn eq(&self, other: &CatchClause) -> bool
sourceimpl Serialize for CatchClause
impl Serialize for CatchClause
sourceimpl Spanned for CatchClause
impl Spanned for CatchClause
impl Eq for CatchClause
impl StructuralEq for CatchClause
impl StructuralPartialEq for CatchClause
Auto Trait Implementations
impl RefUnwindSafe for CatchClause
impl Send for CatchClause
impl Sync for CatchClause
impl Unpin for CatchClause
impl UnwindSafe for CatchClause
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