summaryrefslogtreecommitdiffstats
path: root/libimagentrymarkdown/src
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-05-24 16:17:02 +0200
committerMatthias Beyer <mail@beyermatthias.de>2016-06-09 16:52:34 +0200
commitfb2934a96dade2a7a98a9c9e11d57ba08f8c567d (patch)
tree11d3d3c879429bcdffbceb2f38df2ffd94c773e1 /libimagentrymarkdown/src
parentf6fdfabf81f27b7db2244f1f30958db2f9a0e624 (diff)
Impl From<I> for ToHtmlIterator<I>
Diffstat (limited to 'libimagentrymarkdown/src')
-rw-r--r--libimagentrymarkdown/src/html.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/libimagentrymarkdown/src/html.rs b/libimagentrymarkdown/src/html.rs
index b350f34f..09038751 100644
--- a/libimagentrymarkdown/src/html.rs
+++ b/libimagentrymarkdown/src/html.rs
@@ -45,4 +45,12 @@ pub mod iter {
}
+ impl<I: Iterator<Item = Entry>> From<I> for ToHtmlIterator<I> {
+
+ fn from(obj: I) -> ToHtmlIterator<I> {
+ ToHtmlIterator::new(obj)
+ }
+
+ }
+
}