euv_ui/component/calendar/view/enum.rs
1use super::*;
2
3/// The column headings of the [`euv_calendar`] day grid.
4///
5/// The order of the vector — not the enum order — decides the column order,
6/// so a locale that starts the week on Sunday simply passes
7/// `[EuvCalendarWeekday::Sun, ..]`.
8#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
9pub enum EuvCalendarWeekday {
10 /// Monday.
11 #[default]
12 Mon,
13 /// Tuesday.
14 Tue,
15 /// Wednesday.
16 Wed,
17 /// Thursday.
18 Thu,
19 /// Friday.
20 Fri,
21 /// Saturday.
22 Sat,
23 /// Sunday.
24 Sun,
25}