[][src]Struct holiday::iter::HolidayIter

pub struct HolidayIter<'h, H: BeforeAfterDate> { /* fields omitted */ }

An iterator over the occurrences of a Holiday

Methods

impl<'h, H: BeforeAfterDate> HolidayIter<'h, H>[src]

pub fn at(self, current_date: NaiveDate) -> Self[src]

Set the current date

pub fn starting_at(self, start_date: NaiveDate) -> Self[src]

Start the iterator at the given date

pub fn ending_at(self, end_date: NaiveDate) -> Self[src]

End the iterator at the given date

pub fn shift_from(&mut self, date: NaiveDate)[src]

Set first and last dates for the iterator if a new date is not between the first and last dates.

Trait Implementations

impl<'h, H: Debug + BeforeAfterDate> Debug for HolidayIter<'h, H>[src]

impl<'h, H: BeforeAfterDate> DoubleEndedIterator for HolidayIter<'h, H>[src]

impl<'h, H: BeforeAfterDate> Iterator for HolidayIter<'h, H>[src]

type Item = NaiveDate

The type of the elements being iterated over.

Auto Trait Implementations

impl<'h, H> RefUnwindSafe for HolidayIter<'h, H> where
    H: RefUnwindSafe

impl<'h, H> Send for HolidayIter<'h, H> where
    H: Sync

impl<'h, H> Sync for HolidayIter<'h, H> where
    H: Sync

impl<'h, H> Unpin for HolidayIter<'h, H>

impl<'h, H> UnwindSafe for HolidayIter<'h, H> where
    H: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.