pub enum StartOfYear {
Monday = 2,
Tuesday = 3,
Thursday = 5,
Saturday = 7,
}
Expand description
The day of the new year. Only these four days are permitted.
Variants§
Monday = 2
Monday (everyone knows what Monday is)
Tuesday = 3
Tuesday (everyone knows what Tuesday is)
Thursday = 5
Thursday (everyone knows what Thursday is)
Saturday = 7
Saturday (everyone knows what Saturday is)
Trait Implementations§
source§impl Clone for StartOfYear
impl Clone for StartOfYear
source§fn clone(&self) -> StartOfYear
fn clone(&self) -> StartOfYear
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 StartOfYear
impl Debug for StartOfYear
source§impl Ord for StartOfYear
impl Ord for StartOfYear
source§fn cmp(&self, other: &StartOfYear) -> Ordering
fn cmp(&self, other: &StartOfYear) -> 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 PartialEq for StartOfYear
impl PartialEq for StartOfYear
source§fn eq(&self, other: &StartOfYear) -> bool
fn eq(&self, other: &StartOfYear) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StartOfYear
impl PartialOrd for StartOfYear
source§fn partial_cmp(&self, other: &StartOfYear) -> Option<Ordering>
fn partial_cmp(&self, other: &StartOfYear) -> 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 StartOfYear
impl Eq for StartOfYear
impl StructuralPartialEq for StartOfYear
Auto Trait Implementations§
impl Freeze for StartOfYear
impl RefUnwindSafe for StartOfYear
impl Send for StartOfYear
impl Sync for StartOfYear
impl Unpin for StartOfYear
impl UnwindSafe for StartOfYear
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