pub struct AnalyzerAdapter<'db, 'a, TAnalyzer: DataflowAnalyzer<'db, 'a>> {
pub analyzer: &'a mut TAnalyzer,
/* private fields */
}Expand description
Adapter that implements the legacy Analyzer trait by delegating to DataflowAnalyzer.
Fields§
§analyzer: &'a mut TAnalyzerTrait Implementations§
Source§impl<'db, 'a, TAnalyzer: DataflowAnalyzer<'db, 'a>> Analyzer<'db, 'a> for AnalyzerAdapter<'db, 'a, TAnalyzer>
impl<'db, 'a, TAnalyzer: DataflowAnalyzer<'db, 'a>> Analyzer<'db, 'a> for AnalyzerAdapter<'db, 'a, TAnalyzer>
type Info = <TAnalyzer as DataflowAnalyzer<'db, 'a>>::Info
fn visit_block_start( &mut self, info: &mut Self::Info, block_id: BlockId, _block: &Block<'db>, )
fn visit_stmt( &mut self, _info: &mut Self::Info, _statement_location: StatementLocation, _stmt: &'a Statement<'db>, )
fn visit_goto( &mut self, info: &mut Self::Info, _statement_location: StatementLocation, target_block_id: BlockId, remapping: &'a VarRemapping<'db>, )
fn merge_match( &mut self, statement_location: StatementLocation, match_info: &'a MatchInfo<'db>, infos: impl Iterator<Item = Self::Info>, ) -> Self::Info
fn info_from_return( &mut self, statement_location: StatementLocation, vars: &'a [VarUsage<'db>], ) -> Self::Info
Source§fn info_from_panic(
&mut self,
statement_location: StatementLocation,
var: &VarUsage<'db>,
) -> Self::Info
fn info_from_panic( &mut self, statement_location: StatementLocation, var: &VarUsage<'db>, ) -> Self::Info
Default
info_from_panic implementation for post ‘lower_panics’ phases.
Earlier phases need to override this implementation.Auto Trait Implementations§
impl<'db, 'a, TAnalyzer> Freeze for AnalyzerAdapter<'db, 'a, TAnalyzer>
impl<'db, 'a, TAnalyzer> RefUnwindSafe for AnalyzerAdapter<'db, 'a, TAnalyzer>where
TAnalyzer: RefUnwindSafe,
impl<'db, 'a, TAnalyzer> Send for AnalyzerAdapter<'db, 'a, TAnalyzer>where
TAnalyzer: Send,
impl<'db, 'a, TAnalyzer> Sync for AnalyzerAdapter<'db, 'a, TAnalyzer>where
TAnalyzer: Sync,
impl<'db, 'a, TAnalyzer> Unpin for AnalyzerAdapter<'db, 'a, TAnalyzer>
impl<'db, 'a, TAnalyzer> UnsafeUnpin for AnalyzerAdapter<'db, 'a, TAnalyzer>
impl<'db, 'a, TAnalyzer> !UnwindSafe for AnalyzerAdapter<'db, 'a, TAnalyzer>
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<'db, T> DebugDbUpcast<'db, T> for Twhere
T: ?Sized,
impl<'db, T> DebugDbUpcast<'db, T> for Twhere
T: ?Sized,
fn debug_db_upcast(&'db self) -> &'db T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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