use result::Result; use error::MarkdownErrorKind; pub type HTML = String; pub fn to_html(buffer: &str) -> Result { unimplemented!() } pub mod iter { use result::Result; use libimagstore::store::Entry; use super::HTML; use super::to_html; pub struct ToHtmlIterator> { i: I } impl> ToHtmlIterator { fn new(i: I) -> ToHtmlIterator { ToHtmlIterator { i: i } } } impl> Iterator for ToHtmlIterator { type Item = Result; fn next(&mut self) -> Option { self.i.next().map(|entry| to_html(&entry.get_content()[..])) } } }