pub enum TargetDateState<'a> {
Dated(&'a str),
Undated,
}Expand description
The explicit ordering state of one initiative’s target date.
The two states are exhaustive and never conflated: Self::Dated carries a
validated YYYY-MM-DD calendar date, and Self::Undated is a record that
carries no target date at all. There is no third “unknown date” value and no
sentinel date, so a surface cannot render an undated initiative as if it were
scheduled (C-003).
Variants§
Dated(&'a str)
The record carries a YYYY-MM-DD calendar target date.
Undated
The record carries no target date; it sorts after every dated initiative.
Implementations§
Source§impl<'a> TargetDateState<'a>
impl<'a> TargetDateState<'a>
Trait Implementations§
Source§impl<'a> Clone for TargetDateState<'a>
impl<'a> Clone for TargetDateState<'a>
impl<'a> Copy for TargetDateState<'a>
Source§impl<'a> Debug for TargetDateState<'a>
impl<'a> Debug for TargetDateState<'a>
impl<'a> Eq for TargetDateState<'a>
Source§impl<'a> Hash for TargetDateState<'a>
impl<'a> Hash for TargetDateState<'a>
Source§impl<'a> PartialEq for TargetDateState<'a>
impl<'a> PartialEq for TargetDateState<'a>
impl<'a> StructuralPartialEq for TargetDateState<'a>
Auto Trait Implementations§
impl<'a> Freeze for TargetDateState<'a>
impl<'a> RefUnwindSafe for TargetDateState<'a>
impl<'a> Send for TargetDateState<'a>
impl<'a> Sync for TargetDateState<'a>
impl<'a> Unpin for TargetDateState<'a>
impl<'a> UnsafeUnpin for TargetDateState<'a>
impl<'a> UnwindSafe for TargetDateState<'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
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