pub enum PatchOnlyDiff<Patch> {
Unchanged,
Patched(Patch),
}Expand description
A generic type which can represent two possible ‘diff’ states. Appropriate for types which cannot be fully replaced - this only really makes sense in the context of a derived ‘diff’ that has skipped fields
Variants§
Trait Implementations§
Source§impl<P> Apply for PatchOnlyDiff<P>where
P: Apply,
impl<P> Apply for PatchOnlyDiff<P>where
P: Apply,
Source§impl<Patch: Clone> Clone for PatchOnlyDiff<Patch>
impl<Patch: Clone> Clone for PatchOnlyDiff<Patch>
Source§fn clone(&self) -> PatchOnlyDiff<Patch>
fn clone(&self) -> PatchOnlyDiff<Patch>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Patch: Debug> Debug for PatchOnlyDiff<Patch>
impl<Patch: Debug> Debug for PatchOnlyDiff<Patch>
Source§impl<Patch: PartialEq> PartialEq for PatchOnlyDiff<Patch>
impl<Patch: PartialEq> PartialEq for PatchOnlyDiff<Patch>
Source§impl<P> Replace for PatchOnlyDiff<P>
impl<P> Replace for PatchOnlyDiff<P>
fn is_unchanged(&self) -> bool
fn is_replaced(&self) -> bool
impl<Patch> StructuralPartialEq for PatchOnlyDiff<Patch>
Auto Trait Implementations§
impl<Patch> Freeze for PatchOnlyDiff<Patch>where
Patch: Freeze,
impl<Patch> RefUnwindSafe for PatchOnlyDiff<Patch>where
Patch: RefUnwindSafe,
impl<Patch> Send for PatchOnlyDiff<Patch>where
Patch: Send,
impl<Patch> Sync for PatchOnlyDiff<Patch>where
Patch: Sync,
impl<Patch> Unpin for PatchOnlyDiff<Patch>where
Patch: Unpin,
impl<Patch> UnwindSafe for PatchOnlyDiff<Patch>where
Patch: 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