pub struct ReturnOptimizerContext<'a> { /* private fields */ }
Trait Implementations§
source§impl<'a> Analyzer<'a> for ReturnOptimizerContext<'_>
impl<'a> Analyzer<'a> for ReturnOptimizerContext<'_>
type Info = AnalyzerInfo
fn visit_stmt( &mut self, info: &mut Self::Info, _statement_location: StatementLocation, stmt: &'a Statement )
fn visit_goto( &mut self, info: &mut Self::Info, (block_id, _statement_idx): StatementLocation, _target_block_id: BlockId, remapping: &VarRemapping )
fn merge_match( &mut self, (block_id, _statement_idx): StatementLocation, match_info: &'a MatchInfo, infos: &[Self::Info] ) -> Self::Info
fn info_from_return( &mut self, _statement_location: StatementLocation, vars: &'a [VarUsage] ) -> Self::Info
fn info_from_panic( &mut self, _statement_location: StatementLocation, _data: &VarUsage ) -> Self::Info
fn visit_block_start( &mut self, info: &mut Self::Info, block_id: BlockId, block: &FlatBlock )
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ReturnOptimizerContext<'a>
impl<'a> !Send for ReturnOptimizerContext<'a>
impl<'a> !Sync for ReturnOptimizerContext<'a>
impl<'a> Unpin for ReturnOptimizerContext<'a>
impl<'a> !UnwindSafe for ReturnOptimizerContext<'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