pub struct TryStmt {
pub try_block: Block,
pub error_var: String,
pub catch_block: Block,
pub span: Span,
}Expand description
Try/catch statement
Fields§
§try_block: BlockThe try block
error_var: StringThe error variable name in catch
catch_block: BlockThe catch block
span: SpanSource location
Trait Implementations§
impl StructuralPartialEq for TryStmt
Auto Trait Implementations§
impl Freeze for TryStmt
impl RefUnwindSafe for TryStmt
impl Send for TryStmt
impl Sync for TryStmt
impl Unpin for TryStmt
impl UnwindSafe for TryStmt
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