Struct DateIter
pub struct DateIter { /* private fields */ }
An iterator over a range of Dates, yielding each day from start to end inclusive.
This struct is created by Date::iter_to or DateIter::new.
Implementations
impl DateIter
const fn new(start: Date, end: Date) -> SelfCreate a new
DateIterfromstarttoendinclusive.If
start > end, the iterator will be empty.# use DateIter; # use date; let mut iter = new; assert_eq!; assert_eq!; assert_eq!; assert_eq!;
Trait Implementations
impl Clone for DateIter
fn clone(&self) -> DateIter
impl Debug for DateIter
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl DoubleEndedIterator for DateIter
fn next_back(&mut self) -> Option<Self::Item>fn nth_back(&mut self, n: usize) -> Option<Self::Item>
impl Eq for DateIter
impl ExactSizeIterator for DateIter
fn len(&self) -> usize
impl FusedIterator for DateIter
impl Iterator for DateIter
type Item = Date;fn next(&mut self) -> Option<Self::Item>fn size_hint(&self) -> (usize, Option<usize>)fn count(self) -> usizefn last(self) -> Option<Self::Item>fn nth(&mut self, n: usize) -> Option<Self::Item>fn max(self) -> Option<Self::Item>fn min(self) -> Option<Self::Item>fn is_sorted(self) -> bool
impl PartialEq for DateIter
fn eq(&self, other: &DateIter) -> bool
impl StructuralPartialEq for DateIter
Auto Trait Implementations
impl Freeze for DateIter
impl RefUnwindSafe for DateIter
impl Send for DateIter
impl Sync for DateIter
impl Unpin for DateIter
impl UnsafeUnpin for DateIter
impl UnwindSafe for DateIter
Blanket Implementations
impl<I> IntoIterator for DateIter
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for DateIter
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for DateIter
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for DateIter
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for DateIter
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for DateIter
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for DateIter
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for DateIter
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for DateIter
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for DateIter
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>