Function parse_hyperlinks::renderer::text_rawlinks2html_writer [−][src]
pub fn text_rawlinks2html_writer<'a, S: 'a + AsRef<str>, W: Write>(
input: S,
output: &mut W
) -> Result<(), Error>
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(()) }