pub struct Try {
pub try_block: Vec<Statement>,
pub except_clauses: Vec<(Expression, Option<Name>, Vec<Statement>)>,
pub last_except: Vec<Statement>,
pub else_block: Vec<Statement>,
pub finally_block: Vec<Statement>,
}
Expand description
A try block.
Fields§
§try_block: Vec<Statement>
§except_clauses: Vec<(Expression, Option<Name>, Vec<Statement>)>
except 1 [as 2]: 3
last_except: Vec<Statement>
Empty iff no except:
clause.
else_block: Vec<Statement>
Empty iff no else:
clause.
finally_block: Vec<Statement>
Empty iff no finally:
clause.
Trait Implementations§
impl StructuralPartialEq for Try
Auto Trait Implementations§
impl Freeze for Try
impl RefUnwindSafe for Try
impl Send for Try
impl Sync for Try
impl Unpin for Try
impl UnwindSafe for Try
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