#[non_exhaustive]pub enum Last {
Day,
Weekday,
Offset(DayOfMonthOffset),
OffsetWeekday(DayOfMonthOffset),
}Expand description
A “last” expression for DayOfMonthExpr
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.
Day
An L expression. The last day of the month.
Weekday
An LW expression. The last weekday of the month.
Offset(DayOfMonthOffset)
The last day of the month offsetted by a value.
For example, a L-3, the 3rd to last day of the month
OffsetWeekday(DayOfMonthOffset)
The closest weekday to the last day of the month offsetted by a value.
For example, a L-3W, the weekday closest to the 3rd to last day of the month.
Trait Implementations§
impl Eq for Last
impl StructuralPartialEq for Last
Auto Trait Implementations§
impl Freeze for Last
impl RefUnwindSafe for Last
impl Send for Last
impl Sync for Last
impl Unpin for Last
impl UnwindSafe for Last
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