pub enum DispatchResolution {
Complete,
Partial,
Unresolved,
}Expand description
How completely a language backend resolved an indirect call site.
Candidate names are emitted only when the backend has evidence that the
callable value can reach the call site. Partial keeps those proven
candidates while recording that another, opaque source may also reach it.
Variants§
Implementations§
Source§impl DispatchResolution
impl DispatchResolution
pub fn from_candidates( has_candidates: bool, has_unresolved_sources: bool, ) -> Self
Trait Implementations§
Source§impl Clone for DispatchResolution
impl Clone for DispatchResolution
impl Copy for DispatchResolution
Source§impl Debug for DispatchResolution
impl Debug for DispatchResolution
Source§impl Default for DispatchResolution
impl Default for DispatchResolution
Source§impl<'de> Deserialize<'de> for DispatchResolution
impl<'de> Deserialize<'de> for DispatchResolution
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DispatchResolution
Source§impl Ord for DispatchResolution
impl Ord for DispatchResolution
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DispatchResolution
impl PartialEq for DispatchResolution
Source§impl PartialOrd for DispatchResolution
impl PartialOrd for DispatchResolution
Source§impl Serialize for DispatchResolution
impl Serialize for DispatchResolution
impl StructuralPartialEq for DispatchResolution
Auto Trait Implementations§
impl DynSend for DispatchResolution
impl DynSync for DispatchResolution
impl Freeze for DispatchResolution
impl RefUnwindSafe for DispatchResolution
impl Send for DispatchResolution
impl Sync for DispatchResolution
impl Unpin for DispatchResolution
impl UnsafeUnpin for DispatchResolution
impl UnwindSafe for DispatchResolution
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