enum McpCompactRelationResolution<'a> {
Resolved {
selector: &'a ReusableTargetSelector,
generation: IndexGeneration,
},
Ambiguous {
reference: &'a GraphIdentityText,
candidates: u32,
},
Unresolved {
reference: &'a GraphIdentityText,
},
External {
external: &'a ExternalSelector,
generation: IndexGeneration,
},
}Expand description
Resolution facts retained by the compact relation projection.
Variants§
Resolved
Exactly one reusable local target was resolved.
Fields
§
selector: &'a ReusableTargetSelectorExact selector accepted by later calls.
§
generation: IndexGenerationComplete generation containing the target.
Ambiguous
More than one valid target remains.
Fields
§
reference: &'a GraphIdentityTextOriginal normalized reference.
Unresolved
No supported static target was found.
Fields
§
reference: &'a GraphIdentityTextOriginal normalized reference.
External
The target is intentionally outside the selected project.
Fields
§
external: &'a ExternalSelectorTyped external identity.
§
generation: IndexGenerationComplete generation containing the external record.
Trait Implementations§
Source§impl<'a> Debug for McpCompactRelationResolution<'a>
impl<'a> Debug for McpCompactRelationResolution<'a>
Source§impl<'a> From<&'a RelationResolution> for McpCompactRelationResolution<'a>
impl<'a> From<&'a RelationResolution> for McpCompactRelationResolution<'a>
Source§fn from(resolution: &'a RelationResolution) -> Self
fn from(resolution: &'a RelationResolution) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for McpCompactRelationResolution<'a>
impl<'a> RefUnwindSafe for McpCompactRelationResolution<'a>
impl<'a> Send for McpCompactRelationResolution<'a>
impl<'a> Sync for McpCompactRelationResolution<'a>
impl<'a> Unpin for McpCompactRelationResolution<'a>
impl<'a> UnwindSafe for McpCompactRelationResolution<'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