pub struct PrettyOptions {
pub indent: String,
pub blank_lines_between_decls: usize,
pub max_line_width: usize,
}Expand description
Pretty-print options.
Fields§
§indent: StringIndentation string (default: two spaces).
blank_lines_between_decls: usizeBlank lines between top-level declarations (default: 1).
max_line_width: usizeMaximum line width before wrapping (default: 80).
Trait Implementations§
Source§impl Clone for PrettyOptions
impl Clone for PrettyOptions
Source§impl Debug for PrettyOptions
impl Debug for PrettyOptions
Auto Trait Implementations§
impl Freeze for PrettyOptions
impl RefUnwindSafe for PrettyOptions
impl Send for PrettyOptions
impl Sync for PrettyOptions
impl Unpin for PrettyOptions
impl UnsafeUnpin for PrettyOptions
impl UnwindSafe for PrettyOptions
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