Struct python_parser::ast::Try [−][src]
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>,
}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 Clone for Try[src]
impl Clone for Tryfn clone(&self) -> Try[src]
fn clone(&self) -> TryReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Try[src]
impl Debug for Tryfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Try[src]
impl PartialEq for Try