Struct rustfmt_nightly::FormatReport [−][src]
pub struct FormatReport { /* fields omitted */ }Reports on any issues that occurred during a run of Rustfmt.
Can be reported to the user via its Display implementation of print_fancy.
Methods
impl FormatReport[src]
impl FormatReportpub fn has_warnings(&self) -> bool[src]
pub fn has_warnings(&self) -> boolWhether any warnings or errors are present in the report.
pub fn fancy_print(
&self,
t: Box<Terminal<Output = Stderr>>
) -> Result<(), Error>[src]
pub fn fancy_print(
&self,
t: Box<Terminal<Output = Stderr>>
) -> Result<(), Error>Print the report to a terminal using colours and potentially other fancy output.
Trait Implementations
impl Clone for FormatReport[src]
impl Clone for FormatReportfn clone(&self) -> FormatReport[src]
fn clone(&self) -> FormatReportReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Display for FormatReport[src]
impl Display for FormatReportAuto Trait Implementations
impl !Send for FormatReport
impl !Send for FormatReportimpl !Sync for FormatReport
impl !Sync for FormatReport