summaryrefslogtreecommitdiff
path: root/src/yearinfo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/yearinfo.rs')
-rw-r--r--src/yearinfo.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/yearinfo.rs b/src/yearinfo.rs
index 0628485..c41f66c 100644
--- a/src/yearinfo.rs
+++ b/src/yearinfo.rs
@@ -16,15 +16,15 @@ pub struct YearInfo {
pub wnomask: Option<Vec<usize>>,
}
-#[derive(Debug, PartialEq)]
+#[derive(Debug, PartialEq, PartialOrd)]
pub enum Frequenzy {
- YEARLY,
- MONTHLY,
- WEEKLY,
- DAILY,
- HOURLY,
- MINUTELY,
- SECONDLY,
+ YEARLY = 0,
+ MONTHLY = 1,
+ WEEKLY = 2,
+ DAILY = 3,
+ HOURLY = 4,
+ MINUTELY = 5,
+ SECONDLY = 6,
}
#[derive(Debug)]