pub struct PrettyConfig {
pub symbols: SymbolSet,
pub indent_width: usize,
pub max_width: usize,
pub show_types: bool,
}Expand description
Configuration for pretty printing.
Fields§
§symbols: SymbolSetSymbol set to use for rendering
indent_width: usizeNumber of spaces per indentation level
max_width: usizeMaximum line width before wrapping (advisory)
show_types: boolWhether to show type annotations on terms
Implementations§
Source§impl PrettyConfig
impl PrettyConfig
Sourcepub fn with_indent(self, w: usize) -> Self
pub fn with_indent(self, w: usize) -> Self
Set the indentation width.
Sourcepub fn with_max_width(self, w: usize) -> Self
pub fn with_max_width(self, w: usize) -> Self
Set the maximum line width.
Sourcepub fn with_types(self, v: bool) -> Self
pub fn with_types(self, v: bool) -> Self
Enable or disable type annotation display.
Trait Implementations§
Source§impl Clone for PrettyConfig
impl Clone for PrettyConfig
Source§fn clone(&self) -> PrettyConfig
fn clone(&self) -> PrettyConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrettyConfig
impl Debug for PrettyConfig
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