pub struct SolidInsertDeletePatch<D>where
D: InfallibleDataset + 'static,{ /* private fields */ }
Expand description
SolidInsertDeletePatch
is a kind of n3-patch resource as defined by
Solid protocol,
and corresponds to solid::InsertDeletePatch
type.
Implementations§
Source§impl<D> SolidInsertDeletePatch<D>where
D: InfallibleDataset,
impl<D> SolidInsertDeletePatch<D>where
D: InfallibleDataset,
Sourcepub fn effective_ops(&self) -> HashSet<PatchEffectiveOperation>
pub fn effective_ops(&self) -> HashSet<PatchEffectiveOperation>
Resolve effective op of the patch operation.
Sourcepub fn apply<TD: InfallibleMutableDataset + SetDataset>(
&self,
target_dataset: TD,
) -> Result<(TD, ResolvedPatch), SolidInsertDeletePatchError>
pub fn apply<TD: InfallibleMutableDataset + SetDataset>( &self, target_dataset: TD, ) -> Result<(TD, ResolvedPatch), SolidInsertDeletePatchError>
Apply patch to target dataset. Returns effective dataset, and applied resolved patch.
Trait Implementations§
Source§impl<D> Clone for SolidInsertDeletePatch<D>where
D: InfallibleDataset,
impl<D> Clone for SolidInsertDeletePatch<D>where
D: InfallibleDataset,
Auto Trait Implementations§
impl<D> Freeze for SolidInsertDeletePatch<D>
impl<D> RefUnwindSafe for SolidInsertDeletePatch<D>where
D: RefUnwindSafe,
impl<D> Send for SolidInsertDeletePatch<D>
impl<D> Sync for SolidInsertDeletePatch<D>
impl<D> Unpin for SolidInsertDeletePatch<D>
impl<D> UnwindSafe for SolidInsertDeletePatch<D>where
D: RefUnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more