pub struct GateFile {
pub path: String,
pub error_count: u32,
pub panicked: bool,
pub reason: Option<GateFileReason>,
}Expand description
One file that a file-judging gate names, with the reason that the gate counted it.
A gate that counts files that did not parse cleanly writes this item. When
reason is set, error_count and panicked hold fixed values.
Fields§
§path: StringThe file path, relative to the project root, with / separators.
error_count: u32The number of parser errors for the file. 1 when reason is set.
panicked: boolTrue when the parser stopped in the file and did not recover, so the
analysis saw only the part before the error. true when reason is set.
reason: Option<GateFileReason>Why the file counts when it is not a parser error. Absent for a parser error, the only reason before this field existed.
Trait Implementations§
impl Eq for GateFile
impl StructuralPartialEq for GateFile
Auto Trait Implementations§
impl Forget for GateFile
impl Freeze for GateFile
impl Move for GateFile
impl RefUnwindSafe for GateFile
impl Send for GateFile
impl Sync for GateFile
impl Unpin for GateFile
impl UnsafeUnpin for GateFile
impl UnwindSafe for GateFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more