Enum parse_zoneinfo::line::DaySpec
source · pub enum DaySpec {
Ordinal(i8),
Last(Weekday),
LastOnOrBefore(Weekday, i8),
FirstOnOrAfter(Weekday, i8),
}
Expand description
A day definition field.
This can be given in either absolute terms (such as “the fifth day of the month”), or relative terms (such as “the last Sunday of the month”, or “the last Friday before or including the 13th”).
Note that in the last example, it’s allowed for that particular Friday to be the 13th in question.
Variants§
Ordinal(i8)
A specific day of the month, given by its number.
Last(Weekday)
The last day of the month with a specific weekday.
LastOnOrBefore(Weekday, i8)
The last day with the given weekday before (or including) a day with a specific number.
FirstOnOrAfter(Weekday, i8)
The first day with the given weekday after (or including) a day with a specific number.
Implementations§
Trait Implementations§
source§impl PartialEq for DaySpec
impl PartialEq for DaySpec
impl Copy for DaySpec
impl StructuralPartialEq for DaySpec
Auto Trait Implementations§
impl Freeze for DaySpec
impl RefUnwindSafe for DaySpec
impl Send for DaySpec
impl Sync for DaySpec
impl Unpin for DaySpec
impl UnwindSafe for DaySpec
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