pub struct PrintOptions {
    pub max_width: u32,
    pub indent_width: u8,
    pub use_tabs: bool,
    pub new_line_text: &'static str,
}
Expand description

Options for printing the print items.

Fields

max_width: u32

The width the printer will attempt to keep the line under.

indent_width: u8

The number of columns to count when indenting or using a tab.

use_tabs: bool

Whether to use tabs for indenting.

new_line_text: &'static str

The newline character to use when doing a new line.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.