pub struct ParseResult {
pub modules: Vec<ModuleInfo>,
pub read_failures: Vec<SourceReadFailure>,
pub parse_degradations: Vec<SourceParseDegradation>,
pub cache_hits: usize,
pub cache_misses: usize,
pub parse_cpu_ms: f64,
pub files_read: u64,
pub source_bytes_read: u64,
pub css_masked_bytes: u64,
}Expand description
Result of parsing all files, including incremental cache statistics.
Fields§
§modules: Vec<ModuleInfo>Extracted module information for all successfully parsed files.
read_failures: Vec<SourceReadFailure>Files discovered with stable IDs but unreadable by the parser.
parse_degradations: Vec<SourceParseDegradation>Files that parsed with diagnostics, so their extracted module may be incomplete. Reported, never used to withhold findings.
cache_hits: usizeNumber of files whose parse results were loaded from cache (unchanged).
cache_misses: usizeNumber of files that required a full parse (new or changed).
parse_cpu_ms: f64Summed wall-clock time of the actual AST parses across all rayon workers.
files_read: u64Files whose bytes were read from disk: every parse, plus every cache hit that had to compare the content hash.
source_bytes_read: u64Bytes of source read from disk across all files.
css_masked_bytes: u64Source bytes that the CSS comment mask read across all parsed files.
Auto Trait Implementations§
impl Freeze for ParseResult
impl RefUnwindSafe for ParseResult
impl Send for ParseResult
impl Sync for ParseResult
impl Unpin for ParseResult
impl UnsafeUnpin for ParseResult
impl UnwindSafe for ParseResult
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> 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