Skip to main content

DiffResult

Struct DiffResult 

Source
pub struct DiffResult {
    pub a_only: Vec<Quad>,
    pub b_only: Vec<Quad>,
    pub prefixes: Vec<(String, String)>,
    pub graph_a: NamedNode,
    pub graph_b: NamedNode,
    pub stats: DiffStats,
    pub source_a: Option<PathBuf>,
    pub source_b: Option<PathBuf>,
    pub format_a: Option<InputFormat>,
    pub format_b: Option<InputFormat>,
    pub quad_mode: bool,
}
Expand description

Full result of a diff computation, kept in memory so it can be either serialized to disk or served from the web viewer.

a_only / b_only carry [Quad]s. In triple mode (quad_mode = false) each quad’s graph component is the wrapper graph IRI (graph_a / graph_b) and the diff is written as a single TriG/N-Quads document containing two named graphs. In quad mode (at least one input is N-Quads or TriG) the original graph names from the source are preserved and the diff is emitted as two separate files (one per side).

Fields§

§a_only: Vec<Quad>§b_only: Vec<Quad>§prefixes: Vec<(String, String)>

Merged prefix declarations from A and B. A wins on conflicts.

§graph_a: NamedNode§graph_b: NamedNode§stats: DiffStats§source_a: Option<PathBuf>

Source file paths, when known (used by the web viewer to lazily recompute the set of common triples).

§source_b: Option<PathBuf>§format_a: Option<InputFormat>§format_b: Option<InputFormat>§quad_mode: bool

Implementations§

Source§

impl DiffResult

Source

pub fn sort_rows(&mut self)

Source

pub fn a_only_triples(&self) -> impl Iterator<Item = Triple> + '_

Source

pub fn b_only_triples(&self) -> impl Iterator<Item = Triple> + '_

Trait Implementations§

Source§

impl Clone for DiffResult

Source§

fn clone(&self) -> DiffResult

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for DiffResult

Source§

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

Formats the value using the given formatter. 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.

§

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

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,