pub struct DiscoveredSources {
pub files: Vec<DiscoveredFile>,
pub config_candidates: Vec<PathBuf>,
pub diagnostics: Vec<WorkspaceDiagnostic>,
}Expand description
Source files, config candidates, and the source-discovery diagnostics one walk produced.
diagnostics is the walk’s OWN skip list, not a read of the process-wide
registry: combined mode can run two walks on the same root concurrently, and
each walk replaces the registry’s source-discovery entries, so only the
by-value list is a stable answer to “what did THIS analysis skip” (issue
#2366).
Fields§
§files: Vec<DiscoveredFile>Source files with stable path-sorted FileIds.
config_candidates: Vec<PathBuf>Non-source config-candidate paths captured in the same traversal.
diagnostics: Vec<WorkspaceDiagnostic>Skipped-large-file, skipped-minified-file, and skipped-source-dotdir diagnostics from this walk.
Auto Trait Implementations§
impl Freeze for DiscoveredSources
impl RefUnwindSafe for DiscoveredSources
impl Send for DiscoveredSources
impl Sync for DiscoveredSources
impl Unpin for DiscoveredSources
impl UnsafeUnpin for DiscoveredSources
impl UnwindSafe for DiscoveredSources
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