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 FormatReport
pub fn has_warnings(&self) -> bool
[src]
pub fn has_warnings(&self) -> bool
Whether 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 FormatReport
fn clone(&self) -> FormatReport
[src]
fn clone(&self) -> FormatReport
Returns 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 FormatReport
Auto Trait Implementations
impl !Send for FormatReport
impl !Send for FormatReport
impl !Sync for FormatReport
impl !Sync for FormatReport