diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-05-24 16:17:02 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-06-09 16:52:34 +0200 |
commit | fb2934a96dade2a7a98a9c9e11d57ba08f8c567d (patch) | |
tree | 11d3d3c879429bcdffbceb2f38df2ffd94c773e1 /libimagentrymarkdown | |
parent | f6fdfabf81f27b7db2244f1f30958db2f9a0e624 (diff) |
Impl From<I> for ToHtmlIterator<I>
Diffstat (limited to 'libimagentrymarkdown')
-rw-r--r-- | libimagentrymarkdown/src/html.rs | 8 |
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) + } + + } + } |