pub struct Options {
pub byte_offsets: bool,
pub indentation: bool,
}Expand description
Options for the Formatter.
The default options print no byte offsets and apply indentation:
let options: dvi::display::Options = Default::default();
assert_eq!(options.byte_offsets, false);
assert_eq!(options.indentation, true);Fields§
§byte_offsets: boolIf true, every line is prefixed with a column containing the offset in the DVI data of the operation on that line.
Only the first line of a multi-line operation displays the offset; subsequent lines are padded so that the operations stay aligned.
indentation: boolIf true, Op::Push and Op::Pop operations introduce and remove
indentation.
Indentation makes the structure of a DVI file much easier to see, but it is worth disabling when diffing the output for two DVI files whose push and pop operations are paired up differently. In that case indentation makes the diff much larger than the true difference between the files.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more