pub struct ParsedAnalysisSessionParts {
pub config: ResolvedConfig,
pub config_path: Option<PathBuf>,
pub files: Vec<DiscoveredFile>,
pub modules: Vec<ModuleInfo>,
pub workspaces: Vec<WorkspaceInfo>,
pub workspace_diagnostics: Vec<WorkspaceDiagnostic>,
pub parse_ms: f64,
pub cache_update_ms: f64,
pub cache_hits: usize,
pub cache_misses: usize,
pub parse_cpu_ms: f64,
}Expand description
Owned session parts after parsing the discovered files.
Fields§
§config: ResolvedConfigResolved project config the session was created with.
config_path: Option<PathBuf>Path of the loaded config file; None when defaults were used.
files: Vec<DiscoveredFile>Files discovered under the session root.
modules: Vec<ModuleInfo>Parsed modules, one per discovered file.
workspaces: Vec<WorkspaceInfo>Workspace metadata discovered during config resolution.
workspace_diagnostics: Vec<WorkspaceDiagnostic>Diagnostics from workspace discovery (undeclared or invalid members).
parse_ms: f64Parse wall time in milliseconds.
cache_update_ms: f64Parse-cache write-back wall time in milliseconds.
cache_hits: usizeFiles served from the parse cache.
cache_misses: usizeFiles that had to be parsed fresh.
parse_cpu_ms: f64Summed parse CPU time across rayon workers in milliseconds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParsedAnalysisSessionParts
impl RefUnwindSafe for ParsedAnalysisSessionParts
impl Send for ParsedAnalysisSessionParts
impl Sync for ParsedAnalysisSessionParts
impl Unpin for ParsedAnalysisSessionParts
impl UnsafeUnpin for ParsedAnalysisSessionParts
impl UnwindSafe for ParsedAnalysisSessionParts
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