pub enum DiagnosticFormat {
Full,
Concise,
Azure,
Pylint,
Github,
}Expand description
The diagnostic output format.
Variants§
Full
The default full mode will print “pretty” diagnostics.
That is, color will be used when printing to a tty.
Moreover, diagnostic messages may include additional
context and annotations on the input to help understand
the message.
Concise
Print diagnostics in a concise mode.
This will guarantee that each diagnostic is printed on a single line. Only the most important or primary aspects of the diagnostic are included. Contextual information is dropped.
This may use color when printing to a tty.
Azure
Print diagnostics in the Azure Pipelines format.
Pylint
Print diagnostics in the format emitted by Pylint.
Github
Print diagnostics in the format used by GitHub Actions workflow error annotations.
Trait Implementations§
Source§impl Clone for DiagnosticFormat
impl Clone for DiagnosticFormat
Source§fn clone(&self) -> DiagnosticFormat
fn clone(&self) -> DiagnosticFormat
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 DiagnosticFormat
Source§impl Debug for DiagnosticFormat
impl Debug for DiagnosticFormat
Source§impl Default for DiagnosticFormat
impl Default for DiagnosticFormat
Source§fn default() -> DiagnosticFormat
fn default() -> DiagnosticFormat
Returns the “default value” for a type. Read more
impl Eq for DiagnosticFormat
Source§impl Hash for DiagnosticFormat
impl Hash for DiagnosticFormat
Source§impl Ord for DiagnosticFormat
impl Ord for DiagnosticFormat
Source§fn cmp(&self, other: &DiagnosticFormat) -> Ordering
fn cmp(&self, other: &DiagnosticFormat) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DiagnosticFormat
impl PartialEq for DiagnosticFormat
Source§impl PartialOrd for DiagnosticFormat
impl PartialOrd for DiagnosticFormat
impl StructuralPartialEq for DiagnosticFormat
Auto Trait Implementations§
impl Freeze for DiagnosticFormat
impl RefUnwindSafe for DiagnosticFormat
impl Send for DiagnosticFormat
impl Sync for DiagnosticFormat
impl Unpin for DiagnosticFormat
impl UnsafeUnpin for DiagnosticFormat
impl UnwindSafe for DiagnosticFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> HashEqLike<&T> for T
impl<T> HashEqLike<&T> for T
Source§impl<T> HashEqLike<Cow<'_, T>> for T
impl<T> HashEqLike<Cow<'_, T>> for T
Source§impl<T> HashEqLike<T> for T
impl<T> HashEqLike<T> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more