pub struct DepNode<'tcx> {
pub place: Place<'tcx>,
pub at: CallString,
pub(crate) place_pretty: Option<Intern<String>>,
pub is_split: bool,
pub span: Span,
}
Expand description
A node in the program dependency graph.
Represents a place at a particular call-string. The place is in the body of the root of the call-string.
Fields§
§place: Place<'tcx>
A place in memory in a particular body.
at: CallString
The point in the execution of the program.
place_pretty: Option<Intern<String>>
Pretty representation of the place.
This is cached as an interned string on DepNode
because to compute it later,
we would have to regenerate the entire monomorphized body for a given place.
is_split: bool
Does the PDG track subplaces of this place?
span: Span
Implementations§
Trait Implementations§
Source§impl TransformCallString for DepNode<'_>
impl TransformCallString for DepNode<'_>
fn transform_call_string(&self, f: impl Fn(CallString) -> CallString) -> Self
impl<'tcx> Copy for DepNode<'tcx>
impl Eq for DepNode<'_>
Auto Trait Implementations§
impl<'tcx> Freeze for DepNode<'tcx>
impl<'tcx> !RefUnwindSafe for DepNode<'tcx>
impl<'tcx> Send for DepNode<'tcx>
impl<'tcx> Sync for DepNode<'tcx>
impl<'tcx> Unpin for DepNode<'tcx>
impl<'tcx> !UnwindSafe for DepNode<'tcx>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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