pub struct CppCompileDatabaseCoverage { /* private fields */ }Expand description
Informational coverage from one compile database against the analyzer’s C++ workspace listing.
A missing source is not a discovery failure. Build systems routinely leave
generated translation units in compile_commands.json after a clean or
partial checkout. This report is therefore kept separate from compile
contexts and dependency-discovery completeness. The count is exact over
distinct canonical workspace-relative paths; the sample is deterministic
and bounded by [MAX_MISSING_WORKSPACE_SOURCE_SAMPLE].
Implementations§
Source§impl CppCompileDatabaseCoverage
impl CppCompileDatabaseCoverage
Sourcepub fn missing_workspace_source_count(&self) -> usize
pub fn missing_workspace_source_count(&self) -> usize
The exact number of distinct in-workspace compile-database source paths absent from the supplied analyzer listing.
Sourcepub fn missing_workspace_source_sample(&self) -> &[PathBuf]
pub fn missing_workspace_source_sample(&self) -> &[PathBuf]
A sorted, workspace-relative sample of missing source paths.
Trait Implementations§
Source§impl Clone for CppCompileDatabaseCoverage
impl Clone for CppCompileDatabaseCoverage
Source§fn clone(&self) -> CppCompileDatabaseCoverage
fn clone(&self) -> CppCompileDatabaseCoverage
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 moreSource§impl Debug for CppCompileDatabaseCoverage
impl Debug for CppCompileDatabaseCoverage
Source§impl Default for CppCompileDatabaseCoverage
impl Default for CppCompileDatabaseCoverage
Source§fn default() -> CppCompileDatabaseCoverage
fn default() -> CppCompileDatabaseCoverage
Returns the “default value” for a type. Read more
impl Eq for CppCompileDatabaseCoverage
impl StructuralPartialEq for CppCompileDatabaseCoverage
Auto Trait Implementations§
impl Freeze for CppCompileDatabaseCoverage
impl RefUnwindSafe for CppCompileDatabaseCoverage
impl Send for CppCompileDatabaseCoverage
impl Sync for CppCompileDatabaseCoverage
impl Unpin for CppCompileDatabaseCoverage
impl UnsafeUnpin for CppCompileDatabaseCoverage
impl UnwindSafe for CppCompileDatabaseCoverage
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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