pub struct FormatOpts {
pub show_line_numbers: bool,
pub show_filename: bool,
pub filename: Option<String>,
pub color: bool,
pub target_marker: bool,
pub line_number_width: usize,
}Expand description
Common configuration shared by plain and fragment formatters.
Fields§
§show_line_numbers: bool§show_filename: bool§filename: Option<String>§color: bool§target_marker: boolPrepend "> " (colorized green) before target lines.
Set true only when mixing target and context lines (i.e. -c N).
line_number_width: usizeImplementations§
Source§impl FormatOpts
impl FormatOpts
Trait Implementations§
Source§impl Clone for FormatOpts
impl Clone for FormatOpts
Source§fn clone(&self) -> FormatOpts
fn clone(&self) -> FormatOpts
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 moreAuto Trait Implementations§
impl Freeze for FormatOpts
impl RefUnwindSafe for FormatOpts
impl Send for FormatOpts
impl Sync for FormatOpts
impl Unpin for FormatOpts
impl UnsafeUnpin for FormatOpts
impl UnwindSafe for FormatOpts
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