Skip to main content

OracleReport

Struct OracleReport 

Source
pub struct OracleReport {
Show 14 fields pub schema: &'static str, pub source_commit: Option<String>, pub symbols_codegraph: usize, pub symbols_roteiro: usize, pub symbols_matched: usize, pub symbols_scope_diff: usize, pub codegraph_only: usize, pub roteiro_only: usize, pub codegraph_only_sample: Vec<String>, pub roteiro_only_sample: Vec<String>, pub constants_codegraph: usize, pub calls_codegraph: usize, pub calls_agree: usize, pub calls_codegraph_only: usize,
}
Expand description

The result of comparing Roteiro’s derived graph against a codegraph snapshot. Counts cover Rust function/struct/enum/trait symbols (the overlap where both tools operate) and function-to-function calls.

Fields§

§schema: &'static str

Stable schema tag (ORACLE_SCHEMA).

§source_commit: Option<String>

The commit codegraph indexed, from the snapshot meta (for context — a mismatch with the current HEAD explains divergence).

§symbols_codegraph: usize

Comparable Rust symbols codegraph found.

§symbols_roteiro: usize

Comparable Rust symbols in Roteiro’s derived graph.

§symbols_matched: usize

Symbols present in both with the same key (exact agreement).

§symbols_scope_diff: usize

Symbols both tools found in the same file with the same leaf name but a different scope (e.g. codegraph #foo vs Roteiro #tests::foo) — the same symbol, keyed differently, not a real divergence.

§codegraph_only: usize

Symbols codegraph found that Roteiro genuinely lacks (no same-file, same-leaf match) — a real extraction-coverage gap.

§roteiro_only: usize

Symbols Roteiro found that codegraph genuinely lacks.

§codegraph_only_sample: Vec<String>

A capped, ordered sample of the genuine codegraph-only keys.

§roteiro_only_sample: Vec<String>

A capped, ordered sample of the genuine roteiro-only keys.

§constants_codegraph: usize

Constants codegraph extracted — a known Roteiro gap (it does not yet extract const/static), reported so the symbol counts stay honest.

§calls_codegraph: usize

Internal function→function calls edges codegraph found (both ends Rust).

§calls_agree: usize

Of those, how many Roteiro also has (agreement).

§calls_codegraph_only: usize

codegraph calls Roteiro lacks — expected, since Roteiro only links unambiguously-resolved calls while codegraph resolves by name too.

Trait Implementations§

Source§

impl Clone for OracleReport

Source§

fn clone(&self) -> OracleReport

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 OracleReport

Source§

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

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

impl Serialize for OracleReport

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

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> 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> Same for T

Source§

type Output = T

Should always be Self
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.