pub enum ReferenceHolder {
Epic(EpicId),
Issue(IssueKey),
}Expand description
The entity that holds a failing reference (data-model §7’s holder).
A reference lives either on an epic record or in an issue’s epics list, and
a diagnostic that did not say which would make the user edit the wrong file.
One enum rather than a second diagnostic type, because a second type for one
direction is the second resolver C-002 forbids.
Variants§
Epic(EpicId)
An epic-held reference, by epic id.
Issue(IssueKey)
An issue-held reference, by issue number.
Trait Implementations§
Source§impl Clone for ReferenceHolder
impl Clone for ReferenceHolder
Source§impl Debug for ReferenceHolder
impl Debug for ReferenceHolder
Source§impl Display for ReferenceHolder
impl Display for ReferenceHolder
impl Eq for ReferenceHolder
Source§impl Hash for ReferenceHolder
impl Hash for ReferenceHolder
Source§impl Ord for ReferenceHolder
impl Ord for ReferenceHolder
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 ReferenceHolder
impl PartialEq for ReferenceHolder
Source§impl PartialOrd for ReferenceHolder
impl PartialOrd for ReferenceHolder
impl StructuralPartialEq for ReferenceHolder
Auto Trait Implementations§
impl Freeze for ReferenceHolder
impl RefUnwindSafe for ReferenceHolder
impl Send for ReferenceHolder
impl Sync for ReferenceHolder
impl Unpin for ReferenceHolder
impl UnsafeUnpin for ReferenceHolder
impl UnwindSafe for ReferenceHolder
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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 moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more