Function parse_hyperlinks::renderer::text_rawlinks2html_writer
source · pub fn text_rawlinks2html_writer<'a, W>(
input: &'a str,
output: &mut W
) -> Result<(), Error>where
W: Write,
Expand description
Markup source code viewer
Same as text_rawlinks2html()
, but it uses Write
for output. This function
allocates much less memory and is faster because it avoids copying.
Usage example:
use parse_hyperlinks::renderer::text_rawlinks2html_writer;
use std::io;
use std::io::Read;
fn main() -> Result<(), ::std::io::Error> {
let mut stdin = String::new();
Read::read_to_string(&mut io::stdin(), &mut stdin)?;
text_rawlinks2html_writer(&stdin, &mut io::stdout())?;
Ok(())
}