pub struct CatchClause {
pub type_: Option<Type>,
pub binding: Option<Ident>,
pub body: Block,
}Expand description
One handler of a Statement::Try.
Fields§
§type_: Option<Type>The type caught, taken by const reference; None is catch (...).
binding: Option<Ident>The name the exception is bound to, absent when it is not used.
body: BlockThe handler’s body.
Trait Implementations§
Source§impl Clone for CatchClause
impl Clone for CatchClause
Source§impl Debug for CatchClause
impl Debug for CatchClause
impl Eq 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