pub struct ParityReport {Show 14 fields
pub files: usize,
pub symbol_count_gi: usize,
pub symbol_count_pg: usize,
pub edge_count_gi: usize,
pub edge_count_pg: usize,
pub file_inventory_equal: bool,
pub files_checked: usize,
pub dependencies_lossless: usize,
pub dependents_lossless: usize,
pub dependencies_extra: usize,
pub symbols_checked: usize,
pub symbols_matched: usize,
pub edge_pairs_lossless: bool,
pub divergences: Vec<String>,
}Expand description
Quantified comparison of PropertyGraph vs graph_index facade output.
Fields§
§files: usize§symbol_count_gi: usize§symbol_count_pg: usize§edge_count_gi: usize§edge_count_pg: usize§file_inventory_equal: bool§files_checked: usize§dependencies_lossless: usizeFiles where gi.dependencies ⊆ pg.dependencies (no loss).
dependents_lossless: usizeFiles where gi.dependents ⊆ pg.dependents (no loss).
dependencies_extra: usizeExtra dependency edges PG exposes beyond graph_index (enrichment, e.g. re-export / sibling / co-change edges the import-only GI facade omits).
symbols_checked: usize§symbols_matched: usize§edge_pairs_lossless: boolgi (from,to) structural edge pairs are all present in PG.
divergences: Vec<String>Implementations§
Source§impl ParityReport
impl ParityReport
Sourcepub fn is_lossless(&self) -> bool
pub fn is_lossless(&self) -> bool
True when PG loses nothing graph_index exposed: exact counts, identical file inventory, no dependency/dependent loss, every sampled symbol matched, and the structural-edge set is a superset.
Trait Implementations§
Source§impl Clone for ParityReport
impl Clone for ParityReport
Source§fn clone(&self) -> ParityReport
fn clone(&self) -> ParityReport
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 ParityReport
impl Debug for ParityReport
Source§impl Default for ParityReport
impl Default for ParityReport
Source§fn default() -> ParityReport
fn default() -> ParityReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParityReport
impl RefUnwindSafe for ParityReport
impl Send for ParityReport
impl Sync for ParityReport
impl Unpin for ParityReport
impl UnsafeUnpin for ParityReport
impl UnwindSafe for ParityReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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