Skip to main content

ScanCoverage

Struct ScanCoverage 

Source
pub struct ScanCoverage {
    pub enumerated_members: Vec<String>,
    pub scanned_members: Vec<String>,
}
Expand description

Member-aware scan coverage: the workspace member set vs the set actually scanned. Produced by scan_workspace_multi_crate.

The complement (enumerated_membersscanned_members) is the ignorance frontier: members whose #[presents] sites the scan never reached. In the current --workspace happy path the two sets are equal (every enumerated member is scanned), so the frontier is empty — but recording both makes any future partial-coverage mode (a member filter, a member whose scan errored) surface its unscanned members explicitly rather than silently dropping them.

Fields§

§enumerated_members: Vec<String>

Every workspace member cargo metadata reported, as ADR-017 canonical paths (<name>@<version>). Sorted for determinism.

§scanned_members: Vec<String>

The members actually scanned (canonical paths). A member is here iff its per-member scan ran. Sorted for determinism.

Implementations§

Source§

impl ScanCoverage

Source

pub fn unscanned_members(&self) -> Vec<&str>

Members that were enumerated but NOT scanned — the ignorance frontier. Their #[presents] sites (if any) were never seen by this scan.

The frontier is a set: each unscanned member appears at most once, even if enumerated_members contains a duplicate (degenerate input — a valid Cargo workspace cannot have two members sharing a name@version, but the data type carries no construction guard). De-duplicating here means a downstream ignorance audit reads “is this member unseen?” once per member, not once per accidental repeat (ATK-COV-2 decision). Order follows first appearance in enumerated_members for determinism.

Source

pub fn is_complete(&self) -> bool

True iff every enumerated member was scanned (the ignorance frontier is empty). The happy path for a full --workspace scan.

Trait Implementations§

Source§

impl Clone for ScanCoverage

Source§

fn clone(&self) -> ScanCoverage

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ScanCoverage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ScanCoverage

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for ScanCoverage

Source§

impl PartialEq for ScanCoverage

Source§

fn eq(&self, other: &ScanCoverage) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ScanCoverage

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ScanCoverage

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.