pub enum Weekday {
Mon,
Tue,
Wed,
Thu,
Fri,
Sat,
Sun,
}Expand description
A day of the week.
The variants are listed in the conventional Monday-first order used by
ISO 8601 (Monday = 1, Sunday = 7). The discriminants are not part of
the public API; callers should match on the variant name.
§Examples
use regit_daycount::{Date, Weekday};
// 2026-05-23 is a Saturday.
assert_eq!(Date::ymd(2026, 5, 23).unwrap().day_of_week(), Weekday::Sat);Variants§
Trait Implementations§
impl Copy for Weekday
impl Eq for Weekday
impl StructuralPartialEq for Weekday
Auto Trait Implementations§
impl Freeze for Weekday
impl RefUnwindSafe for Weekday
impl Send for Weekday
impl Sync for Weekday
impl Unpin for Weekday
impl UnsafeUnpin for Weekday
impl UnwindSafe for Weekday
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