pub struct PrettyOptions {
pub color: bool,
pub spans: bool,
pub trivia: bool,
pub width: usize,
}Expand description
Formatting choices shared by token, CST, and combined reports.
Fields§
§color: boolEmits ANSI terminal styling when enabled.
spans: boolIncludes source ranges beside tokens and CST nodes.
trivia: boolIncludes coalesced whitespace and comment trivia in the flat token view.
width: usizePreferred width of source headings and horizontal token bands.
Implementations§
Trait Implementations§
Source§impl Clone for PrettyOptions
impl Clone for PrettyOptions
Source§fn clone(&self) -> PrettyOptions
fn clone(&self) -> PrettyOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PrettyOptions
Source§impl Debug for PrettyOptions
impl Debug for PrettyOptions
Source§impl Default for PrettyOptions
impl Default for PrettyOptions
impl Eq for PrettyOptions
Source§impl PartialEq for PrettyOptions
impl PartialEq for PrettyOptions
impl StructuralPartialEq 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