pub struct PairResolution {
pub edge: Option<CanonicalEdge>,
pub requested: RequestedPair,
pub from_number: Option<IssueRef>,
pub to_number: Option<IssueRef>,
pub diagnostic: Option<PairDiagnostic>,
}Expand description
What a pair resolution found.
Fields§
§edge: Option<CanonicalEdge>The canonical edge, when both endpoints resolved and the pair is not self-referential.
requested: RequestedPairThe pair as typed, whether or not it resolves.
from_number: Option<IssueRef>Each endpoint’s number, when that endpoint resolved.
Per endpoint rather than one edge, because a missing to still leaves a
resolved from and a plan that said from: Err would be reporting a failure
that did not happen. A first version put the error on from unconditionally
to_number: Option<IssueRef>§diagnostic: Option<PairDiagnostic>Why it does not apply, if it does not.
Trait Implementations§
Source§impl Clone for PairResolution
impl Clone for PairResolution
Source§impl Debug for PairResolution
impl Debug for PairResolution
impl Eq for PairResolution
Source§impl PartialEq for PairResolution
impl PartialEq for PairResolution
impl StructuralPartialEq for PairResolution
Auto Trait Implementations§
impl Freeze for PairResolution
impl RefUnwindSafe for PairResolution
impl Send for PairResolution
impl Sync for PairResolution
impl Unpin for PairResolution
impl UnsafeUnpin for PairResolution
impl UnwindSafe for PairResolution
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§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