[−][src]Struct holiday::NthWeekdayOfMonth
Nth weekday of a month (e.g.: Second Tuesday in October)
Methods
impl NthWeekdayOfMonth
[src]
pub fn new<N: Into<NthWeekday>, M: Into<Month>>(
nth: N,
weekday: Weekday,
month: M
) -> Self
[src]
nth: N,
weekday: Weekday,
month: M
) -> Self
Creates a new NthWeekdayOfMonth
pub fn iter(&self) -> HolidayIter<Self>
[src]
Returns an iterator over the ocurrences of the NthWeekdayOfMonth
Trait Implementations
impl BeforeAfterDate for NthWeekdayOfMonth
[src]
fn after(&self, date: &NaiveDate) -> NaiveDate
[src]
fn before(&self, date: &NaiveDate) -> NaiveDate
[src]
fn after_today(&self) -> NaiveDate
[src]
fn before_today(&self) -> NaiveDate
[src]
fn first_date(&self) -> NaiveDate
[src]
fn last_date(&self) -> NaiveDate
[src]
impl Clone for NthWeekdayOfMonth
[src]
fn clone(&self) -> NthWeekdayOfMonth
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for NthWeekdayOfMonth
[src]
impl Debug for NthWeekdayOfMonth
[src]
impl Eq for NthWeekdayOfMonth
[src]
impl From<NaiveDate> for NthWeekdayOfMonth
[src]
impl<'h> IntoIterator for &'h NthWeekdayOfMonth
[src]
type Item = NaiveDate
The type of the elements being iterated over.
type IntoIter = HolidayIter<'h, NthWeekdayOfMonth>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl Ord for NthWeekdayOfMonth
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<NaiveDate> for NthWeekdayOfMonth
[src]
impl<S: ToString> PartialEq<NthWeekdayOfMonth> for Holiday<S>
[src]
fn eq(&self, nth: &NthWeekdayOfMonth) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<NthWeekdayOfMonth> for NthWeekdayOfMonth
[src]
fn eq(&self, other: &NthWeekdayOfMonth) -> bool
[src]
fn ne(&self, other: &NthWeekdayOfMonth) -> bool
[src]
impl PartialOrd<NthWeekdayOfMonth> for NthWeekdayOfMonth
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for NthWeekdayOfMonth
[src]
impl StructuralPartialEq for NthWeekdayOfMonth
[src]
Auto Trait Implementations
impl RefUnwindSafe for NthWeekdayOfMonth
impl Send for NthWeekdayOfMonth
impl Sync for NthWeekdayOfMonth
impl Unpin for NthWeekdayOfMonth
impl UnwindSafe for NthWeekdayOfMonth
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,