[][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.


impl FormatReport[src]

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

Whether any warnings or errors are present in the report.

pub fn fancy_print(
    t: Box<dyn Terminal<Output = Stderr>>
) -> Result<(), Error>


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>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<E> SpecializationError for E[src]

impl<T> Erased for T[src]