pub struct FormatOptions {
pub print_width: usize,
pub tab_width: usize,
pub use_tabs: bool,
}Expand description
Options that control how a document is rendered.
Fields§
§print_width: usizeMaximum line width before the printer breaks groups. Default: 80.
tab_width: usizeNumber of spaces per indentation level (ignored when use_tabs is
true). Default: 2.
use_tabs: boolUse tab characters instead of spaces for indentation. Default: false.
Trait Implementations§
Source§impl Clone for FormatOptions
impl Clone for FormatOptions
Source§impl Debug for FormatOptions
impl Debug for FormatOptions
Auto Trait Implementations§
impl Freeze for FormatOptions
impl RefUnwindSafe for FormatOptions
impl Send for FormatOptions
impl Sync for FormatOptions
impl Unpin for FormatOptions
impl UnsafeUnpin for FormatOptions
impl UnwindSafe for FormatOptions
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