pub struct BackAnalysis<'a, TAnalyzer: Analyzer<'a>> {
pub analyzer: TAnalyzer,
/* private fields */
}
Expand description
Main analysis type that allows traversing the flow backwards.
Fields§
§analyzer: TAnalyzer
Implementations§
source§impl<'a, TAnalyzer: Analyzer<'a>> BackAnalysis<'a, TAnalyzer>
impl<'a, TAnalyzer: Analyzer<'a>> BackAnalysis<'a, TAnalyzer>
sourcepub fn new(lowered: &'a FlatLowered, analyzer: TAnalyzer) -> Self
pub fn new(lowered: &'a FlatLowered, analyzer: TAnalyzer) -> Self
Creates a new BackAnalysis instance.
sourcepub fn get_root_info(&mut self) -> TAnalyzer::Info
pub fn get_root_info(&mut self) -> TAnalyzer::Info
Gets the analysis info for the entire function.
Auto Trait Implementations§
impl<'a, TAnalyzer> Freeze for BackAnalysis<'a, TAnalyzer>where
TAnalyzer: Freeze,
impl<'a, TAnalyzer> RefUnwindSafe for BackAnalysis<'a, TAnalyzer>
impl<'a, TAnalyzer> Send for BackAnalysis<'a, TAnalyzer>
impl<'a, TAnalyzer> Sync for BackAnalysis<'a, TAnalyzer>
impl<'a, TAnalyzer> Unpin for BackAnalysis<'a, TAnalyzer>
impl<'a, TAnalyzer> UnwindSafe for BackAnalysis<'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<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