pub enum CallSiteKind<'tcx> {
Resolved {
callee: NodeKey<'tcx>,
},
SynthesizedPanic,
Unresolved {
def_id: DefId,
},
DynamicDispatch,
}Variants§
Resolved
Call terminator that resolved to a concrete callee node (a source item or a
monomorphization).
SynthesizedPanic
Synthetic edge from an Assert terminator with a reachable unwind path —
represents the implicit call to core::panicking::panic.
Unresolved
Call terminator on a FnDef where Instance::try_resolve failed.
Fields
§
def_id: DefIdDynamicDispatch
Call terminator on a non-FnDef type (function pointer, closure).
Trait Implementations§
Source§impl<'tcx> Clone for CallSiteKind<'tcx>
impl<'tcx> Clone for CallSiteKind<'tcx>
Source§fn clone(&self) -> CallSiteKind<'tcx>
fn clone(&self) -> CallSiteKind<'tcx>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'tcx> Debug for CallSiteKind<'tcx>
impl<'tcx> Debug for CallSiteKind<'tcx>
Auto Trait Implementations§
impl<'tcx> Freeze for CallSiteKind<'tcx>
impl<'tcx> !RefUnwindSafe for CallSiteKind<'tcx>
impl<'tcx> Send for CallSiteKind<'tcx>
impl<'tcx> Sync for CallSiteKind<'tcx>
impl<'tcx> Unpin for CallSiteKind<'tcx>
impl<'tcx> !UnwindSafe for CallSiteKind<'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,
§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