format_ops

Function format_ops 

Source
pub fn format_ops<I: IntoIterator<Item = Op>>(ops: I) -> String
Expand description

Format a list of operations as a string, using the default Options.

Because the byte offsets of the operations are not known, this function cannot be used with the Options::byte_offsets option.

let ops = vec![dvi::Op::Right(300), dvi::Op::Down(-4)];
assert_eq!(dvi::display::format_ops(ops), "right(300)\ndown(-4)\n");