diff options
Diffstat (limited to 'src/matcher.rs')
-rw-r--r-- | src/matcher.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/matcher.rs b/src/matcher.rs index 1482b68..d574090 100644 --- a/src/matcher.rs +++ b/src/matcher.rs @@ -34,4 +34,15 @@ impl Matcher for Month { } +#[cfg(feature = "with-filters")] +use filters::filter::*; + +#[cfg(feature = "with-filters")] +impl<F> Matcher for F + where F: Filter<TimeType> +{ + fn matches(&self, tt: &TimeType) -> Result<bool> { + Ok(self.filter(tt)) + } +} |