summaryrefslogtreecommitdiffstats
path: root/src/iter.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-11-11 11:19:42 +0100
committerMatthias Beyer <mail@beyermatthias.de>2017-11-19 14:00:24 +0100
commitc1a9ab6a43d14b007f9787d9eb48752b13ac7dc4 (patch)
treebb48d5ecbba45f70e9aad2c16dafac85d776070f /src/iter.rs
parent3a4f59eafe6e8a4e00d0a3aa0fe1853a3351adaa (diff)
Add parser iterator type -> API iterator type mapping
Diffstat (limited to 'src/iter.rs')
-rw-r--r--src/iter.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/iter.rs b/src/iter.rs
index 7399de5..05669c2 100644
--- a/src/iter.rs
+++ b/src/iter.rs
@@ -9,6 +9,7 @@ use error::Result;
use timetype::TimeType;
use matcher::Matcher;
+#[derive(Debug)]
pub struct Iter {
base: TimeType,
increment: TimeType,
@@ -80,6 +81,7 @@ impl Iterator for Iter {
}
+#[derive(Debug)]
pub struct FilterIter<I, M>(I, M)
where I: Iterator<Item = Result<TimeType>>,
M: Matcher;
@@ -127,6 +129,7 @@ impl<I, M> EveryFilter<M> for I
}
}
+#[derive(Debug)]
pub struct WithoutIter<I, M>(I, M)
where I: Iterator<Item = Result<TimeType>>,
M: Matcher;
@@ -174,6 +177,7 @@ impl<I, M> WithoutFilter<M> for I
}
}
+#[derive(Debug)]
pub struct UntilIter<I>(I, NaiveDateTime)
where I: Iterator<Item = Result<TimeType>>;
@@ -222,6 +226,7 @@ impl<I> Until for I
}
}
+#[derive(Debug)]
pub struct TimesIter<I>
where I: Iterator<Item = Result<TimeType>>
{