pub struct GateFile {
pub path: String,
pub error_count: u32,
pub panicked: bool,
pub reason: Option<GateFileReason>,
}Expand description
One file a file-judging gate names, with the reason the gate counted it.
Today only parse-error emits it. The item carries the same facts as the
source-parse-degraded entry in workspace_diagnostics[] for that file,
so a consumer can act on the gate without a join. With reason set, the
count and the parser outcome are placeholders.
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 instead of recovering, 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 Freeze 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.