pub struct RaiseStatementVisitor<'a> {
pub raises: Vec<(TextRange, Option<&'a Expr>, Option<&'a Expr>)>,
}Expand description
A StatementVisitor that collects all raise statements in a function or method.
Fields§
§raises: Vec<(TextRange, Option<&'a Expr>, Option<&'a Expr>)>Trait Implementations§
Source§impl<'a> Default for RaiseStatementVisitor<'a>
impl<'a> Default for RaiseStatementVisitor<'a>
Source§fn default() -> RaiseStatementVisitor<'a>
fn default() -> RaiseStatementVisitor<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> StatementVisitor<'a> for RaiseStatementVisitor<'a>
impl<'a> StatementVisitor<'a> for RaiseStatementVisitor<'a>
fn visit_stmt(&mut self, stmt: &'a Stmt)
fn visit_body(&mut self, body: &'a [Stmt])
fn visit_except_handler(&mut self, except_handler: &'a ExceptHandler)
fn visit_elif_else_clause(&mut self, elif_else_clause: &'a ElifElseClause)
fn visit_match_case(&mut self, match_case: &'a MatchCase)
Auto Trait Implementations§
impl<'a> Freeze for RaiseStatementVisitor<'a>
impl<'a> RefUnwindSafe for RaiseStatementVisitor<'a>
impl<'a> Send for RaiseStatementVisitor<'a>
impl<'a> Sync for RaiseStatementVisitor<'a>
impl<'a> Unpin for RaiseStatementVisitor<'a>
impl<'a> UnsafeUnpin for RaiseStatementVisitor<'a>
impl<'a> UnwindSafe for RaiseStatementVisitor<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more