pub struct DiagFormatOpts<'a> { /* private fields */ }Implementations§
Source§impl<'a> DiagFormatOpts<'a>
impl<'a> DiagFormatOpts<'a>
Sourcepub fn annotate(self, annotate: bool) -> Self
pub fn annotate(self, annotate: bool) -> Self
Sets whether to annotate the diagnostic notation with tags.
Sourcepub fn summarize(self, summarize: bool) -> Self
pub fn summarize(self, summarize: bool) -> Self
Sets whether to summarize the diagnostic notation.
Sourcepub fn flat(self, flat: bool) -> Self
pub fn flat(self, flat: bool) -> Self
Sets whether to format the diagnostic notation in a flat manner.
Sets the tags for the diagnostic notation.
Trait Implementations§
Source§impl<'a> Clone for DiagFormatOpts<'a>
impl<'a> Clone for DiagFormatOpts<'a>
Source§fn clone(&self) -> DiagFormatOpts<'a>
fn clone(&self) -> DiagFormatOpts<'a>
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<'a> Default for DiagFormatOpts<'a>
impl<'a> Default for DiagFormatOpts<'a>
Source§fn default() -> DiagFormatOpts<'a>
fn default() -> DiagFormatOpts<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for DiagFormatOpts<'a>
impl<'a> !RefUnwindSafe for DiagFormatOpts<'a>
impl<'a> !Send for DiagFormatOpts<'a>
impl<'a> !Sync for DiagFormatOpts<'a>
impl<'a> Unpin for DiagFormatOpts<'a>
impl<'a> !UnwindSafe for DiagFormatOpts<'a>
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