pub struct ScanOutput {
pub insights: Vec<FileInsight>,
pub files_failed: usize,
}Expand description
扫描结果:成功解析的文件 + 解析失败文件数(B5:失败可观测, 此前失败仅在日志中出现,AnalysisStats 无计数——解析失败的文件 不会出现在 insights 中,下游(覆盖率/统计)会误以为全部成功)
Fields§
§insights: Vec<FileInsight>§files_failed: usize扫描范围内解析失败的文件数(非 UTF-8 读取失败 / tree-sitter 解析错误)
Auto Trait Implementations§
impl Freeze for ScanOutput
impl RefUnwindSafe for ScanOutput
impl Send for ScanOutput
impl Sync for ScanOutput
impl Unpin for ScanOutput
impl UnsafeUnpin for ScanOutput
impl UnwindSafe for ScanOutput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more