Skip to main content

Differences

Struct Differences 

Source
pub struct Differences {
    pub header: String,
    pub forward: CimDataset,
    pub reverse: CimDataset,
    pub preconditions: CimDataset,
    pub blocks: Vec<Block>,
}
Expand description

The statements of one difference header (CimDataset::differences).

Fields§

§header: String

The header’s identifier (urn:uuid:…); empty for differences computed (Differences::between) until the caller gives them one.

§forward: CimDataset§reverse: CimDataset§preconditions: CimDataset§blocks: Vec<Block>

The blocks the header held, in the order written, for the encoder.

Implementations§

Source§

impl Differences

Source

pub fn between(before: &CimDataset, after: &CimDataset) -> Self

The statements that take before to after: what after lacks of before reverse, what it adds forward. An object in one only is written whole, typed; an object in both, where its values differ, as an rdf:Description of the values that differ, typed only where its types do. Applied to before (CimDataset::apply), they give after. The header is empty: the caller names it.

Trait Implementations§

Source§

impl Clone for Differences

Source§

fn clone(&self) -> Self

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

Auto Trait Implementations§

§

impl Forget for Differences

§

impl Freeze for Differences

§

impl Move for Differences

§

impl RefUnwindSafe for Differences

§

impl Send for Differences
where RawVecInner: Send, RawTable<(String, Element)>: Send, RawTable<(String, Vec<String>)>: Send, RawTable<((&'static str, &'static str), FieldForm)>: Send, RawTable<(String, &'static str)>: Send, RawTable<(&'static str, &'static str)>: Send,

§

impl Sync for Differences
where RawVecInner: Sync, RawTable<(String, Element)>: Sync, RawTable<(String, Vec<String>)>: Sync, RawTable<((&'static str, &'static str), FieldForm)>: Sync, RawTable<(String, &'static str)>: Sync, RawTable<(&'static str, &'static str)>: Sync,

§

impl Unpin for Differences
where *const u8 is !null: Unpin, &'static ClassDef: Unpin, &'static str: Unpin, Box<Vec<(&'static str, Box<str>)>>: Unpin, Box<Vec<&'static ClassDef>>: Unpin,

§

impl UnsafeUnpin for Differences

§

impl UnwindSafe for Differences

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.