pub struct DiscoveryReport {
pub units: Vec<SourceUnit>,
pub build_variant: BuildVariant,
pub header_language: Language,
pub packages: Vec<PackageInfo>,
pub suppressed_generated: Vec<PathBuf>,
pub skipped: SkipReport,
pub compile_commands: Option<CompileCommands>,
pub compile_commands_error: Option<CompileCommandsDiagnostic>,
}Expand description
The outcome of a discovery run.
Fields§
§units: Vec<SourceUnit>Source units selected for analysis, ordered by relative path.
build_variant: BuildVariantThe implicit build variant every unit is attributed to.
header_language: LanguageThe language bare .h headers were read as: what the configured
HeaderPolicy named, or what the tree pointed to when the policy
left it to detection.
packages: Vec<PackageInfo>Cargo packages recognised in the tree, ordered by name.
suppressed_generated: Vec<PathBuf>Relative paths excluded because they are generated, ordered by path.
skipped: SkipReportCounts of files skipped for other reasons.
compile_commands: Option<CompileCommands>Parsed compilation database, if one was found and read successfully.
compile_commands_error: Option<CompileCommandsDiagnostic>A compilation database found during discovery but not usable for semantic analysis.
Trait Implementations§
Source§impl Clone for DiscoveryReport
impl Clone for DiscoveryReport
Source§fn clone(&self) -> DiscoveryReport
fn clone(&self) -> DiscoveryReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DiscoveryReport
impl RefUnwindSafe for DiscoveryReport
impl Send for DiscoveryReport
impl Sync for DiscoveryReport
impl Unpin for DiscoveryReport
impl UnsafeUnpin for DiscoveryReport
impl UnwindSafe for DiscoveryReport
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