pub struct PrettyConfig {
pub width: usize,
pub indent: IndentStyle,
pub colored: bool,
}Expand description
Configuration for the pretty printer.
Fields§
§width: usizeMaximum line width.
indent: IndentStyleIndentation style.
colored: boolWhether to use color.
Implementations§
Source§impl PrettyConfig
impl PrettyConfig
Sourcepub fn default_config() -> Self
pub fn default_config() -> Self
Default config: 80 columns, 2-space indent, no color.
Auto Trait Implementations§
impl Freeze for PrettyConfig
impl RefUnwindSafe for PrettyConfig
impl Send for PrettyConfig
impl Sync for PrettyConfig
impl Unpin for PrettyConfig
impl UnsafeUnpin for PrettyConfig
impl UnwindSafe for PrettyConfig
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