[][src]Struct rustfmt_nightly::FormatReport

pub struct FormatReport { /* fields omitted */ }

Reports on any issues that occurred during a run of Rustfmt.

Can be reported to the user using the Display impl on FormatReportFormatter.

Methods

impl FormatReport[src]

pub fn has_warnings(&self) -> bool[src]

Whether any warnings or errors are present in the report.

pub fn fancy_print(
    &self,
    t: Box<dyn Terminal<Output = Stderr>>
) -> Result<(), Error>
[src]

Deprecated:

Use FormatReportFormatter with colors enabled instead

Print the report to a terminal using colours and potentially other fancy output.

Trait Implementations

impl Clone for FormatReport[src]

impl Display for FormatReport[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<E> SpecializationError for E[src]

impl<T> Erased for T[src]