Enum timelang::NamedRelativeTime
source · pub enum NamedRelativeTime {
Now,
Today,
Tomorrow,
Yesterday,
DayAfterTomorrow,
DayBeforeYesterday,
}
Expand description
Corresponds with a named relative time, such as “now”, “today”, “tomorrow”, etc.
Variants§
Now
Now
Today
Today
Tomorrow
Tomorrow
Yesterday
Yesterday
DayAfterTomorrow
The day after tomorrow
DayBeforeYesterday
The day before yesterday
Trait Implementations§
source§impl Clone for NamedRelativeTime
impl Clone for NamedRelativeTime
source§fn clone(&self) -> NamedRelativeTime
fn clone(&self) -> NamedRelativeTime
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NamedRelativeTime
impl Debug for NamedRelativeTime
source§impl Display for NamedRelativeTime
impl Display for NamedRelativeTime
source§impl FromStr for NamedRelativeTime
impl FromStr for NamedRelativeTime
source§impl Hash for NamedRelativeTime
impl Hash for NamedRelativeTime
source§impl Ord for NamedRelativeTime
impl Ord for NamedRelativeTime
source§fn cmp(&self, other: &NamedRelativeTime) -> Ordering
fn cmp(&self, other: &NamedRelativeTime) -> Ordering
1.21.0 · 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
source§impl Parse for NamedRelativeTime
impl Parse for NamedRelativeTime
fn parse(input: ParseStream<'_>) -> Result<Self>
source§impl PartialEq for NamedRelativeTime
impl PartialEq for NamedRelativeTime
source§fn eq(&self, other: &NamedRelativeTime) -> bool
fn eq(&self, other: &NamedRelativeTime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NamedRelativeTime
impl PartialOrd for NamedRelativeTime
source§fn partial_cmp(&self, other: &NamedRelativeTime) -> Option<Ordering>
fn partial_cmp(&self, other: &NamedRelativeTime) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for NamedRelativeTime
impl Eq for NamedRelativeTime
impl StructuralEq for NamedRelativeTime
impl StructuralPartialEq for NamedRelativeTime
Auto Trait Implementations§
impl RefUnwindSafe for NamedRelativeTime
impl Send for NamedRelativeTime
impl Sync for NamedRelativeTime
impl Unpin for NamedRelativeTime
impl UnwindSafe for NamedRelativeTime
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