pub fn gen_lines<'a, W, It, I>(w: W, lines: I) -> Result<(), GenError>
Expand description
Prints newline-terminated Line
s into writer.
§Examples
use hltas::types::Line;
let lines = [
Line::Comment(" Hello World".to_string()),
Line::Reset { non_shared_seed: 1234 },
];
let mut buf = Vec::new();
hltas::write::gen_lines(&mut buf, &lines).unwrap();
assert_eq!(buf, b"// Hello World\nreset 1234\n");