return to top
source
Defines the enumeration for days of the week. Each variant corresponds to a day of the week.
Monday.
Tuesday.
Wednesday.
Thursday.
Friday.
Saturday.
Sunday.
Ordinal represents a bounded value for weekdays, which ranges between 1 and 7.
Ordinal
Converts a Ordinal representing a day index into a corresponding Weekday. This function is useful for mapping numerical representations to days of the week.
Weekday
Converts a Weekday to a Ordinal.
Converts a Weekday to a Nat.
Nat
Converts a Nat to an Option Weekday.
Option Weekday
Converts a Nat to a Weekday. Panics if the value provided is invalid.
Gets the next Weekday.
Check if it's a weekend.