summaryrefslogtreecommitdiff
path: root/src/options.rs
diff options
context:
space:
mode:
authorFredrik Meringdal <fmeringdal@hotmail.com>2020-10-17 19:52:44 +0200
committerFredrik Meringdal <fmeringdal@hotmail.com>2020-10-17 19:52:44 +0200
commit7f90c6abb134490f2e55471a96128f632588f445 (patch)
tree19d492a43f34987805d3553baa38b470f284313e /src/options.rs
parentfdacd3669bbc4dc0d80dd81fc6b241c0b97a2116 (diff)
downloadrust_rrule-7f90c6abb134490f2e55471a96128f632588f445.zip
negative month day tests and support
Diffstat (limited to 'src/options.rs')
-rw-r--r--src/options.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/options.rs b/src/options.rs
index 14712a5..59f1c43 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -8,7 +8,7 @@ pub struct YearInfo {
pub yearweekday: usize,
pub mmask: Vec<usize>,
pub mrange: Vec<usize>,
- pub mdaymask: Vec<usize>,
+ pub mdaymask: Vec<isize>,
pub nmdaymask: Vec<isize>,
pub wdaymask: Vec<usize>,
pub wnomask: Option<Vec<usize>>,
@@ -36,7 +36,7 @@ pub struct ParsedOptions {
pub wkst: usize,
pub bysetpos: Vec<isize>,
pub bymonth: Vec<usize>,
- pub bymonthday: Vec<usize>,
+ pub bymonthday: Vec<isize>,
pub bynmonthday: Vec<isize>,
pub byyearday: Vec<isize>,
pub byweekno: Vec<isize>,
@@ -60,7 +60,7 @@ impl ParsedOptions {
wkst: 0,
bysetpos: vec![],
bymonth: vec![dtstart.month() as usize],
- bymonthday: vec![dtstart.day() as usize],
+ bymonthday: vec![dtstart.day() as isize],
bynmonthday: vec![],
byyearday: vec![],
byweekno: vec![],
@@ -109,7 +109,7 @@ impl ParsedOptions {
self.bymonth = bymonth;
self
}
- pub fn bymonthday(mut self, bymonthday: Vec<usize>) -> Self {
+ pub fn bymonthday(mut self, bymonthday: Vec<isize>) -> Self {
self.bymonthday = bymonthday;
self
}