pub struct CatchClause {
pub binding: Ident,
pub ty: Option<TypeAnnotation>,
pub body: StmtId,
pub span: Span,
}Expand description
catch (e) and bindingless catch are catch-all clauses.
A bindingless clause uses an inaccessible compiler identifier.
When present, the typechecker verifies ty is an Error class.
Fields§
§binding: Ident§ty: Option<TypeAnnotation>§body: StmtId§span: SpanTrait Implementations§
Source§impl Clone for CatchClause
impl Clone for CatchClause
Source§impl Debug for CatchClause
impl Debug for CatchClause
Source§impl PartialEq for CatchClause
impl PartialEq 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 UnsafeUnpin 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