#[non_exhaustive]pub enum DateGeneration {
Backward,
Forward,
Zero,
ThirdWednesday,
}Expand description
How the regular date grid is generated and where a stub may fall.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Backward
Regular dates measured backward from the termination date.
Forward
Regular dates measured forward from the effective date.
Zero
No intermediate dates: just effective and termination.
ThirdWednesday
Like Backward but each date is snapped to the third
Wednesday of its month (IMM dates).
Trait Implementations§
Source§impl Clone for DateGeneration
impl Clone for DateGeneration
Source§fn clone(&self) -> DateGeneration
fn clone(&self) -> DateGeneration
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 moreimpl Copy for DateGeneration
Source§impl Debug for DateGeneration
impl Debug for DateGeneration
impl Eq for DateGeneration
Source§impl Hash for DateGeneration
impl Hash for DateGeneration
Source§impl PartialEq for DateGeneration
impl PartialEq for DateGeneration
Source§fn eq(&self, other: &DateGeneration) -> bool
fn eq(&self, other: &DateGeneration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DateGeneration
Auto Trait Implementations§
impl Freeze for DateGeneration
impl RefUnwindSafe for DateGeneration
impl Send for DateGeneration
impl Sync for DateGeneration
impl Unpin for DateGeneration
impl UnsafeUnpin for DateGeneration
impl UnwindSafe for DateGeneration
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