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: StringThe 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
impl Differences
Sourcepub fn between(before: &CimDataset, after: &CimDataset) -> Self
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§
Auto Trait Implementations§
impl Forget for Differences
impl Freeze for Differences
impl Move for Differences
impl RefUnwindSafe for Differences
impl Send for Differences
impl Sync for Differences
impl Unpin for Differences
impl UnsafeUnpin for Differences
impl UnwindSafe for Differences
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