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: boolWhether to emit ANSI color escapes.
spans: boolWhether to display source spans.
trivia: boolWhether to include trivia in raw token views.
width: usizeThe preferred output width.
Implementations§
Trait Implementations§
Source§impl Clone for PrettyOptions
impl Clone for PrettyOptions
impl 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