1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
//! A module for time enums // Enables use as an iterable and computation of length use strum_macros::{EnumIter, EnumCount}; /// The days of the week #[derive(Debug, EnumIter, EnumCount, Copy, Clone)] pub enum Day { /// [Monday](https://en.wikipedia.org/wiki/) is the first day of the week Monday = 1, /// [Tuesday](https://en.wikipedia.org/wiki/Tuesday) is the second day of the week Tuesday = 2, /// [Wednesday](https://en.wikipedia.org/wiki/Wednesday) is the third day of the week Wednesday = 3, /// [Thursday](https://en.wikipedia.org/wiki/Thursday) is the fourth day of the week Thursday = 4, /// [Friday](https://en.wikipedia.org/wiki/Friday) is the fifth day of the week Friday = 5, /// [Saturday](https://en.wikipedia.org/wiki/Saturday) is the sixth day of the week Saturday = 6, /// [Sunday](https://en.wikipedia.org/wiki/Sunday) is the seventh day of the week Sunday = 7, } /// The months of the year #[derive(Debug, EnumIter, EnumCount, Copy, Clone)] pub enum Month { /// [January](https://en.wikipedia.org/wiki/January) is the first month of the year January = 1, /// [February](https://en.wikipedia.org/wiki/February) is the second month of the year February = 2, /// [March](https://en.wikipedia.org/wiki/March) is the third month of the year March = 3, /// [April](https://en.wikipedia.org/wiki/April) is the fourth month of the year April = 4, /// [May](https://en.wikipedia.org/wiki/May) is the fifth month of the year May = 5, /// [June](https://en.wikipedia.org/wiki/June) is the sixth month of the year June = 6, /// [July](https://en.wikipedia.org/wiki/July) is the seventh month of the year July = 7, /// [August](https://en.wikipedia.org/wiki/August) is the eighth month of the year August = 8, /// [September](https://en.wikipedia.org/wiki/September) is the ninth month of the year September = 9, /// [October](https://en.wikipedia.org/wiki/October) is the tenth month of the year October = 10, /// [November](https://en.wikipedia.org/wiki/November) is the eleventh month of the year November = 11, /// [December](https://en.wikipedia.org/wiki/December) is the twelfth month of the year December = 12, }