Enum holiday::NthWeekday
source · [−]pub enum NthWeekday {
First,
Second,
Third,
Fourth,
Fifth,
Last,
}
Expand description
The nth ocurrence of a weekday in a month.
Using the Fifth
explicitly may panic if you try
to create a date with it, as some months do not have 5 ocurrences of a given weekday.
Variants
First
Second
Third
Fourth
Fifth
Last
Trait Implementations
sourceimpl Clone for NthWeekday
impl Clone for NthWeekday
sourcefn clone(&self) -> NthWeekday
fn clone(&self) -> NthWeekday
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for NthWeekday
impl Debug for NthWeekday
sourceimpl From<NthWeekday> for u32
impl From<NthWeekday> for u32
sourcefn from(nth: NthWeekday) -> Self
fn from(nth: NthWeekday) -> Self
Converts to this type from the input type.
sourceimpl From<u32> for NthWeekday
impl From<u32> for NthWeekday
sourcefn from(u: u32) -> NthWeekday
fn from(u: u32) -> NthWeekday
Converts to this type from the input type.
sourceimpl Ord for NthWeekday
impl Ord for NthWeekday
sourcefn cmp(&self, other: &NthWeekday) -> Ordering
fn cmp(&self, other: &NthWeekday) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<NthWeekday> for NthWeekday
impl PartialEq<NthWeekday> for NthWeekday
sourcefn eq(&self, other: &NthWeekday) -> bool
fn eq(&self, other: &NthWeekday) -> bool
sourceimpl PartialOrd<NthWeekday> for NthWeekday
impl PartialOrd<NthWeekday> for NthWeekday
sourcefn partial_cmp(&self, other: &NthWeekday) -> Option<Ordering>
fn partial_cmp(&self, other: &NthWeekday) -> Option<Ordering>
1.0.0 · sourcefn 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 NthWeekday
impl Eq for NthWeekday
impl StructuralEq for NthWeekday
impl StructuralPartialEq for NthWeekday
Auto Trait Implementations
impl RefUnwindSafe for NthWeekday
impl Send for NthWeekday
impl Sync for NthWeekday
impl Unpin for NthWeekday
impl UnwindSafe for NthWeekday
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more