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 Differenceswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<fn() -> FastHasher>: Freeze,
PhantomData<(String, Element)>: Freeze,
PhantomData<(String, Vec<String>)>: Freeze,
PhantomData<((&'static str, &'static str), FieldForm)>: Freeze,
PhantomData<(String, &'static str)>: Freeze,
PhantomData<(&'static str, &'static str)>: Freeze,
PhantomData<Differences>: Freeze,
PhantomData<Block>: Freeze,
impl Move for Differences
impl RefUnwindSafe for Differences
impl Send for Differences
impl Sync for Differences
impl Unpin for Differences
impl UnsafeUnpin for Differenceswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<fn() -> FastHasher>: UnsafeUnpin,
PhantomData<(String, Element)>: UnsafeUnpin,
PhantomData<(String, Vec<String>)>: UnsafeUnpin,
PhantomData<((&'static str, &'static str), FieldForm)>: UnsafeUnpin,
PhantomData<(String, &'static str)>: UnsafeUnpin,
PhantomData<(&'static str, &'static str)>: UnsafeUnpin,
PhantomData<Differences>: UnsafeUnpin,
PhantomData<Block>: UnsafeUnpin,
impl UnwindSafe for Differenceswhere
RawVecInner: UnwindSafe,
HashMap<String, Element, BuildHasherDefault<FastHasher>>: UnwindSafe,
HashMap<String, Vec<String>, BuildHasherDefault<FastHasher>>: UnwindSafe,
HashMap<(&'static str, &'static str), FieldForm, BuildHasherDefault<FastHasher>>: UnwindSafe,
HashMap<String, &'static str, BuildHasherDefault<FastHasher>>: UnwindSafe,
HashMap<&'static str, &'static str, BuildHasherDefault<FastHasher>>: UnwindSafe,
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