pub struct LintResult {
pub file_path: PathBuf,
pub diagnostics: Vec<Diagnostic>,
pub error_count: usize,
pub warning_count: usize,
pub duration_ms: u64,
}
Expand description
リンター実行結果
Fields§
§file_path: PathBuf
ファイルパス
diagnostics: Vec<Diagnostic>
検出された診断
error_count: usize
エラー数
warning_count: usize
警告数
duration_ms: u64
処理時間(ミリ秒)
Implementations§
Source§impl LintResult
impl LintResult
Sourcepub fn add_diagnostic(&mut self, diagnostic: Diagnostic)
pub fn add_diagnostic(&mut self, diagnostic: Diagnostic)
診断を追加
Sourcepub fn has_diagnostics(&self) -> bool
pub fn has_diagnostics(&self) -> bool
診断があるかどうか
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
エラーがあるかどうか
Trait Implementations§
Source§impl Clone for LintResult
impl Clone for LintResult
Source§fn clone(&self) -> LintResult
fn clone(&self) -> LintResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LintResult
impl Debug for LintResult
Auto Trait Implementations§
impl Freeze for LintResult
impl RefUnwindSafe for LintResult
impl Send for LintResult
impl Sync for LintResult
impl Unpin for LintResult
impl UnwindSafe for LintResult
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