struct CollectPointerToBorrows<'a> {
map: &'a Map,
tracked_places: FxHashMap<PlaceIndex, Place>,
stmts: &'a mut GhostStatements,
before_state: Vec<(PlaceIndex, FlatSet<Loc>)>,
}
Fields§
§map: &'a Map
§tracked_places: FxHashMap<PlaceIndex, Place>
§stmts: &'a mut GhostStatements
§before_state: Vec<(PlaceIndex, FlatSet<Loc>)>
Implementations§
Source§impl<'a> CollectPointerToBorrows<'a>
impl<'a> CollectPointerToBorrows<'a>
fn new(map: &'a Map, stmts: &'a mut GhostStatements) -> Self
Trait Implementations§
Source§impl<'a, 'mir, 'tcx> ResultsVisitor<'mir, 'tcx, Results<'tcx, PointsToAnalysis<'a>>> for CollectPointerToBorrows<'_>
impl<'a, 'mir, 'tcx> ResultsVisitor<'mir, 'tcx, Results<'tcx, PointsToAnalysis<'a>>> for CollectPointerToBorrows<'_>
type Domain = State
fn visit_block_start(&mut self, state: &Self::Domain)
Source§fn visit_statement_after_primary_effect(
&mut self,
_results: &mut Results<'tcx, PointsToAnalysis<'a>>,
state: &Self::Domain,
_statement: &'mir Statement<'tcx>,
location: Location,
)
fn visit_statement_after_primary_effect( &mut self, _results: &mut Results<'tcx, PointsToAnalysis<'a>>, state: &Self::Domain, _statement: &'mir Statement<'tcx>, location: Location, )
Called with both the
before_statement_effect
and the statement_effect
of the given
statement applied to state
.Source§fn visit_terminator_after_primary_effect(
&mut self,
results: &mut Results<'tcx, PointsToAnalysis<'a>>,
_state: &Self::Domain,
terminator: &'mir Terminator<'tcx>,
location: Location,
)
fn visit_terminator_after_primary_effect( &mut self, results: &mut Results<'tcx, PointsToAnalysis<'a>>, _state: &Self::Domain, terminator: &'mir Terminator<'tcx>, location: Location, )
Called with both the
before_terminator_effect
and the terminator_effect
of the given
terminator applied to state
. Read more§fn visit_statement_before_primary_effect(
&mut self,
_results: &mut R,
_state: &Self::Domain,
_statement: &'mir Statement<'tcx>,
_location: Location,
)
fn visit_statement_before_primary_effect( &mut self, _results: &mut R, _state: &Self::Domain, _statement: &'mir Statement<'tcx>, _location: Location, )
Called with the
before_statement_effect
of the given statement applied to state
but not
its statement_effect
.§fn visit_terminator_before_primary_effect(
&mut self,
_results: &mut R,
_state: &Self::Domain,
_terminator: &'mir Terminator<'tcx>,
_location: Location,
)
fn visit_terminator_before_primary_effect( &mut self, _results: &mut R, _state: &Self::Domain, _terminator: &'mir Terminator<'tcx>, _location: Location, )
Called with the
before_terminator_effect
of the given terminator applied to state
but not
its terminator_effect
.fn visit_block_end(&mut self, _state: &Self::Domain)
Auto Trait Implementations§
impl<'a> Freeze for CollectPointerToBorrows<'a>
impl<'a> RefUnwindSafe for CollectPointerToBorrows<'a>
impl<'a> Send for CollectPointerToBorrows<'a>
impl<'a> Sync for CollectPointerToBorrows<'a>
impl<'a> Unpin for CollectPointerToBorrows<'a>
impl<'a> !UnwindSafe for CollectPointerToBorrows<'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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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