Struct dprint_core::formatting::PrintOptions
source · 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§
impl Freeze for PrintOptions
impl RefUnwindSafe for PrintOptions
impl Send for PrintOptions
impl Sync for PrintOptions
impl Unpin for PrintOptions
impl UnwindSafe for PrintOptions
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