pub struct OutputOptions {
pub show_colors: bool,
pub preferred_max_error_width: Option<usize>,
}Expand description
Options for outputting errors. Port of SourceErrorOutputOptions.
Fields§
§show_colors: boolDetermine whether errors should be colorized.
preferred_max_error_width: Option<usize>Soft limit on how wide errors should be (None = unlimited).
Implementations§
Source§impl OutputOptions
impl OutputOptions
Trait Implementations§
Source§impl Clone for OutputOptions
impl Clone for OutputOptions
Source§fn clone(&self) -> OutputOptions
fn clone(&self) -> OutputOptions
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 OutputOptions
Source§impl Debug for OutputOptions
impl Debug for OutputOptions
Auto Trait Implementations§
impl Freeze for OutputOptions
impl RefUnwindSafe for OutputOptions
impl Send for OutputOptions
impl Sync for OutputOptions
impl Unpin for OutputOptions
impl UnsafeUnpin for OutputOptions
impl UnwindSafe for OutputOptions
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