#[non_exhaustive]pub struct TryCatchStmt {
pub body: Box<Block>,
pub catches: Box<[CatchClause]>,
pub finally: Option<Box<Block>>,
/* private fields */
}Expand description
A try statement.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.body: Box<Block>The try block.
catches: Box<[CatchClause]>The catch clauses.
finally: Option<Box<Block>>The finally block, if any.
Implementations§
Trait Implementations§
Source§impl Clone for TryCatchStmt
impl Clone for TryCatchStmt
Source§impl Debug for TryCatchStmt
impl Debug for TryCatchStmt
Auto Trait Implementations§
impl Freeze for TryCatchStmt
impl RefUnwindSafe for TryCatchStmt
impl Send for TryCatchStmt
impl Sync for TryCatchStmt
impl Unpin for TryCatchStmt
impl UnsafeUnpin for TryCatchStmt
impl UnwindSafe for TryCatchStmt
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