pub enum Resolution<P> {
Resolved(Target<P>),
Missing(Missing<P>),
TypeMismatch(Target<P>),
UnsupportedTarget(UnsupportedTarget<P>),
UnsupportedSemantics(UnsupportedSemantics<P>),
UnsupportedVersion(VersionScope<P>),
Invalid(InvalidReference),
External(ExternalReference),
}Expand description
The total outcome of resolving one authored reference. The outer variants are the semantic partitions used by evaluation, correlation, and summary reporting; leaf enums retain the exact diagnostic and its required data.
Variants§
Resolved(Target<P>)
Missing(Missing<P>)
TypeMismatch(Target<P>)
UnsupportedTarget(UnsupportedTarget<P>)
UnsupportedSemantics(UnsupportedSemantics<P>)
UnsupportedVersion(VersionScope<P>)
Invalid(InvalidReference)
External(ExternalReference)
Implementations§
Source§impl<P> Resolution<P>
impl<P> Resolution<P>
pub const fn is_lfs_pointer(&self) -> bool
Trait Implementations§
Source§impl<P: Clone> Clone for Resolution<P>
impl<P: Clone> Clone for Resolution<P>
Source§fn clone(&self) -> Resolution<P>
fn clone(&self) -> Resolution<P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P: Debug> Debug for Resolution<P>
impl<P: Debug> Debug for Resolution<P>
impl<P: Eq> Eq for Resolution<P>
Source§impl<'_enum, P> From<&'_enum Resolution<P>> for ResolutionTag
impl<'_enum, P> From<&'_enum Resolution<P>> for ResolutionTag
Source§fn from(val: &'_enum Resolution<P>) -> ResolutionTag
fn from(val: &'_enum Resolution<P>) -> ResolutionTag
Converts to this type from the input type.
Source§impl<P> From<Resolution<P>> for ResolutionTag
impl<P> From<Resolution<P>> for ResolutionTag
Source§fn from(val: Resolution<P>) -> ResolutionTag
fn from(val: Resolution<P>) -> ResolutionTag
Converts to this type from the input type.
Source§impl<P> IntoDiscriminant for Resolution<P>
impl<P> IntoDiscriminant for Resolution<P>
Source§type Discriminant = ResolutionTag
type Discriminant = ResolutionTag
Enum listing the same variants as this enum but without any data fields
fn discriminant(&self) -> Self::Discriminant
Source§impl<P: PartialEq> PartialEq for Resolution<P>
impl<P: PartialEq> PartialEq for Resolution<P>
impl<P: PartialEq> StructuralPartialEq for Resolution<P>
Auto Trait Implementations§
impl<P> Freeze for Resolution<P>where
P: Freeze,
impl<P> RefUnwindSafe for Resolution<P>where
P: RefUnwindSafe,
impl<P> Send for Resolution<P>where
P: Send,
impl<P> Sync for Resolution<P>where
P: Sync,
impl<P> Unpin for Resolution<P>where
P: Unpin,
impl<P> UnsafeUnpin for Resolution<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Resolution<P>where
P: UnwindSafe,
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