Struct rustfmt_nightly::FormatReport [−][src]
pub struct FormatReport {
internal: Rc<RefCell<(HashMap<FileName, Vec<FormattingError>>, ReportedErrors)>>,
non_formatted_ranges: Vec<(usize, usize)>,
}
Expand description
Reports on any issues that occurred during a run of Rustfmt.
Can be reported to the user using the Display
impl on FormatReportFormatter
.
Fields
internal: Rc<RefCell<(HashMap<FileName, Vec<FormattingError>>, ReportedErrors)>>
non_formatted_ranges: Vec<(usize, usize)>
Implementations
Whether any warnings or errors are present in the report.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for FormatReport
impl !Send for FormatReport
impl !Sync for FormatReport
impl Unpin for FormatReport
impl !UnwindSafe for FormatReport
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes