pub struct ShowConfig {
pub compact: bool,
pub ascii_only: bool,
pub max_depth: Option<usize>,
pub show_implicit: bool,
pub show_levels: bool,
pub show_binder_types: bool,
pub indent_step: usize,
}Expand description
Configuration controlling how terms are shown.
Fields§
§compact: boolUse compact (single-line) output.
ascii_only: boolRestrict output to ASCII characters.
max_depth: Option<usize>Maximum display depth (None = unlimited).
show_implicit: boolWhether to show implicit arguments.
show_levels: boolWhether to show universe levels.
show_binder_types: boolWhether to show binder types.
indent_step: usizeIndentation step in spaces.
Implementations§
Source§impl ShowConfig
impl ShowConfig
Sourcepub fn with_depth(self, d: usize) -> Self
pub fn with_depth(self, d: usize) -> Self
Set a depth limit.
Sourcepub fn with_implicit(self) -> Self
pub fn with_implicit(self) -> Self
Show implicit arguments.
Sourcepub fn with_levels(self) -> Self
pub fn with_levels(self) -> Self
Show universe levels.
Trait Implementations§
Source§impl Clone for ShowConfig
impl Clone for ShowConfig
Source§fn clone(&self) -> ShowConfig
fn clone(&self) -> ShowConfig
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 ShowConfig
impl Debug for ShowConfig
Auto Trait Implementations§
impl Freeze for ShowConfig
impl RefUnwindSafe for ShowConfig
impl Send for ShowConfig
impl Sync for ShowConfig
impl Unpin for ShowConfig
impl UnsafeUnpin for ShowConfig
impl UnwindSafe for ShowConfig
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