#[non_exhaustive]pub enum DayOfWeekModifier {
Last {
weekday: Weekday,
},
Nth {
weekday: Weekday,
nth: u8,
},
}Expand description
A predicate over the day of the week.
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.
Implementations§
Source§impl DayOfWeekModifier
impl DayOfWeekModifier
Sourcepub fn matches(self, date: &CivilDateTime) -> bool
pub fn matches(self, date: &CivilDateTime) -> bool
Whether the date satisfies the predicate.
Trait Implementations§
Source§impl Clone for DayOfWeekModifier
impl Clone for DayOfWeekModifier
Source§fn clone(&self) -> DayOfWeekModifier
fn clone(&self) -> DayOfWeekModifier
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 DayOfWeekModifier
Source§impl Debug for DayOfWeekModifier
impl Debug for DayOfWeekModifier
impl Eq for DayOfWeekModifier
Source§impl Hash for DayOfWeekModifier
impl Hash for DayOfWeekModifier
Source§impl PartialEq for DayOfWeekModifier
impl PartialEq for DayOfWeekModifier
impl StructuralPartialEq for DayOfWeekModifier
Auto Trait Implementations§
impl Freeze for DayOfWeekModifier
impl RefUnwindSafe for DayOfWeekModifier
impl Send for DayOfWeekModifier
impl Sync for DayOfWeekModifier
impl Unpin for DayOfWeekModifier
impl UnsafeUnpin for DayOfWeekModifier
impl UnwindSafe for DayOfWeekModifier
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