Enum timelang::RelativeTimeUnit
source · pub enum RelativeTimeUnit {
Week,
Month,
Year,
Monday,
Tuesday,
Wednesday,
Thursday,
Friday,
Saturday,
Sunday,
}
Expand description
Combined with “next” or “after” to denote specific RelativeTimes.
Variants§
Week
Week
Month
Month
Year
Year
Monday
Monday
Tuesday
Tuesday
Wednesday
Wednesday
Thursday
Thursday
Friday
Friday
Saturday
Saturday
Sunday
Sunday
Trait Implementations§
source§impl Clone for RelativeTimeUnit
impl Clone for RelativeTimeUnit
source§fn clone(&self) -> RelativeTimeUnit
fn clone(&self) -> RelativeTimeUnit
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 RelativeTimeUnit
impl Debug for RelativeTimeUnit
source§impl Display for RelativeTimeUnit
impl Display for RelativeTimeUnit
source§impl FromStr for RelativeTimeUnit
impl FromStr for RelativeTimeUnit
source§impl Hash for RelativeTimeUnit
impl Hash for RelativeTimeUnit
source§impl Ord for RelativeTimeUnit
impl Ord for RelativeTimeUnit
source§fn cmp(&self, other: &RelativeTimeUnit) -> Ordering
fn cmp(&self, other: &RelativeTimeUnit) -> 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 RelativeTimeUnit
impl Parse for RelativeTimeUnit
fn parse(input: ParseStream<'_>) -> Result<Self>
source§impl PartialEq for RelativeTimeUnit
impl PartialEq for RelativeTimeUnit
source§fn eq(&self, other: &RelativeTimeUnit) -> bool
fn eq(&self, other: &RelativeTimeUnit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RelativeTimeUnit
impl PartialOrd for RelativeTimeUnit
source§fn partial_cmp(&self, other: &RelativeTimeUnit) -> Option<Ordering>
fn partial_cmp(&self, other: &RelativeTimeUnit) -> 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 RelativeTimeUnit
impl Eq for RelativeTimeUnit
impl StructuralEq for RelativeTimeUnit
impl StructuralPartialEq for RelativeTimeUnit
Auto Trait Implementations§
impl RefUnwindSafe for RelativeTimeUnit
impl Send for RelativeTimeUnit
impl Sync for RelativeTimeUnit
impl Unpin for RelativeTimeUnit
impl UnwindSafe for RelativeTimeUnit
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