Function hltas::write::gen_line

source ·
pub fn gen_line<W: Write>(w: W, value: &Line) -> Result<(), GenError>
Expand description

Prints Line into writer.

Examples

use hltas::types::Line;

let line = Line::Reset { non_shared_seed: 1234 };
let mut buf = Vec::new();
hltas::write::gen_line(&mut buf, &line).unwrap();
assert_eq!(buf, b"reset 1234");