diff options
author | Daniel <kingdread@gmx.de> | 2019-05-18 01:37:50 +0200 |
---|---|---|
committer | Daniel <kingdread@gmx.de> | 2019-05-18 01:37:50 +0200 |
commit | 54e29430b3a668e9e98d3fc6e1a107fd36af8af4 (patch) | |
tree | d7143e4012ceb9cc8a84fc4013b2012ee4734348 /src/csl.rs | |
parent | e132410e7a526239389d3e8dedbcf5a84f0503b5 (diff) | |
download | raidgrep-54e29430b3a668e9e98d3fc6e1a107fd36af8af4.tar.gz raidgrep-54e29430b3a668e9e98d3fc6e1a107fd36af8af4.tar.bz2 raidgrep-54e29430b3a668e9e98d3fc6e1a107fd36af8af4.zip |
add support for weekday filtering
Diffstat (limited to 'src/csl.rs')
-rw-r--r-- | src/csl.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -4,6 +4,7 @@ use std::str::FromStr; use std::fmt; use super::{SearchField, FightOutcome}; +use chrono::Weekday; pub trait Variants: Copy { type Output: Iterator<Item=Self>; @@ -33,6 +34,7 @@ macro_rules! variants { variants! { SearchField => Account, Character } variants! { FightOutcome => Success, Wipe } +variants! { Weekday => Mon, Tue, Wed, Thu, Fri, Sat, Sun } /// The character that delimits items from each other. const DELIMITER: char = ','; |