pub struct ExcludedOccurrences { /* private fields */ }Expand description
The occurrences one entry does not have, kept apart by reason.
Both reasons take the occurrence out of the day it would have fallen on. They part ways over the arrears: a cancelled occurrence never was, so the debt is whichever earlier one still stands, while a replaced occurrence did take place — elsewhere — and its debt travels with the entry that replaced it (ADR-0031).
Implementations§
Source§impl ExcludedOccurrences
impl ExcludedOccurrences
Sourcepub fn contains(&self, date: &NaiveDate) -> bool
pub fn contains(&self, date: &NaiveDate) -> bool
Whether the series skips date, for either reason.
Sourcepub fn is_replaced(&self, date: &NaiveDate) -> bool
pub fn is_replaced(&self, date: &NaiveDate) -> bool
Whether another entry of the run stands in for the occurrence on
date.
Asked where the two reasons differ, which is the arrears bucket. A
date named by both is treated as replaced: the occurrence is somewhere,
and an EXDATE beside a replacement is redundant rather than
contradictory.
Trait Implementations§
Source§impl Clone for ExcludedOccurrences
impl Clone for ExcludedOccurrences
Source§fn clone(&self) -> ExcludedOccurrences
fn clone(&self) -> ExcludedOccurrences
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExcludedOccurrences
impl Debug for ExcludedOccurrences
Source§impl Default for ExcludedOccurrences
impl Default for ExcludedOccurrences
Source§fn default() -> ExcludedOccurrences
fn default() -> ExcludedOccurrences
Returns the “default value” for a type. Read more
impl Eq for ExcludedOccurrences
Source§impl PartialEq for ExcludedOccurrences
impl PartialEq for ExcludedOccurrences
impl StructuralPartialEq for ExcludedOccurrences
Auto Trait Implementations§
impl Freeze for ExcludedOccurrences
impl RefUnwindSafe for ExcludedOccurrences
impl Send for ExcludedOccurrences
impl Sync for ExcludedOccurrences
impl Unpin for ExcludedOccurrences
impl UnsafeUnpin for ExcludedOccurrences
impl UnwindSafe for ExcludedOccurrences
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