Struct rustfmt_nightly::Summary [−][src]
pub struct Summary {
pub has_diff: bool,
// some fields omitted
}A summary of a Rustfmt run.
Fields
has_diff: bool
Formatted code differs from existing code (--check only).
Methods
impl Summary[src]
impl Summarypub fn has_operational_errors(&self) -> bool[src]
pub fn has_operational_errors(&self) -> boolpub fn has_parsing_errors(&self) -> bool[src]
pub fn has_parsing_errors(&self) -> boolpub fn has_formatting_errors(&self) -> bool[src]
pub fn has_formatting_errors(&self) -> boolpub fn has_check_errors(&self) -> bool[src]
pub fn has_check_errors(&self) -> boolpub fn add_operational_error(&mut self)[src]
pub fn add_operational_error(&mut self)pub fn has_no_errors(&self) -> bool[src]
pub fn has_no_errors(&self) -> boolpub fn add(&mut self, other: Summary)[src]
pub fn add(&mut self, other: Summary)Combine two summaries together.
Trait Implementations
impl Debug for Summary[src]
impl Debug for Summaryfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for Summary[src]
impl Default for Summaryimpl Clone for Summary[src]
impl Clone for Summaryfn clone(&self) -> Summary[src]
fn clone(&self) -> SummaryReturns 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 Copy for Summary[src]
impl Copy for Summary