pub enum CycleReference {
Legacy {
name: String,
},
Generated {
name: String,
id: GeneratedCycleId,
schedule_id: CycleScheduleId,
},
Unknown {
name: String,
},
}Expand description
What a cycle reference resolves to (T010).
The value an issue’s cycles frontmatter holds is a name, and a name may be a
hand-written cycle or a generated one. Resolution is therefore a question with three
answers, and the third one matters: an unknown name is reported, never rebound to
whatever record happens to be nearby.
Variants§
Legacy
A hand-written cycle in the registry.
Generated
A cycle a schedule generated.
Fields
§
id: GeneratedCycleIdThe stable identity behind the name.
§
schedule_id: CycleScheduleIdThe generating schedule.
Unknown
Nothing by that name.
Trait Implementations§
Source§impl Clone for CycleReference
impl Clone for CycleReference
Source§impl Debug for CycleReference
impl Debug for CycleReference
impl Eq for CycleReference
Source§impl PartialEq for CycleReference
impl PartialEq for CycleReference
impl StructuralPartialEq for CycleReference
Auto Trait Implementations§
impl Freeze for CycleReference
impl RefUnwindSafe for CycleReference
impl Send for CycleReference
impl Sync for CycleReference
impl Unpin for CycleReference
impl UnsafeUnpin for CycleReference
impl UnwindSafe for CycleReference
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