pub struct Patch {
pub obj: ExId,
pub path: Vec<(ExId, Prop)>,
pub action: PatchAction,
}Expand description
Fields§
§obj: ExIdThe object this patch modifies
path: Vec<(ExId, Prop)>The path to the property in the parent object where this object lives
action: PatchActionThe change this patch represents
Trait Implementations§
impl StructuralPartialEq for Patch
Auto Trait Implementations§
impl Forget for Patch
impl Freeze for Patchwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(ExId, Prop)>: Freeze,
&'static ScalarValue: Freeze,
ScalarValue: Freeze,
PhantomData<(Value<'static>, ExId, bool)>: Freeze,
PhantomData<SequenceTreeNode<(Value<'static>, ExId, bool)>>: Freeze,
PhantomData<SequenceTreeNode<u8>>: Freeze,
PhantomData<u16>: Freeze,
PhantomData<SequenceTreeNode<u16>>: Freeze,
PhantomData<char>: Freeze,
PhantomData<SequenceTreeNode<char>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<SequenceTreeNode<String>>: Freeze,
*const LeafNode<SmolStr, ScalarValue> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(SmolStr, ScalarValue)>>: Freeze,
PhantomData<Mark>: Freeze,
impl Move for Patch
impl RefUnwindSafe for Patch
impl Send for Patchwhere
RawVecInner: Send,
u8: Send,
&'static ScalarValue: Send,
ScalarValue: Send,
NodeRef<Owned, SmolStr, ScalarValue, LeafOrInternal>: Send,
BoxRaw<(SmolStr, ScalarValue)>: Send,
&'static str: Send,
Arc<str>: Send,
impl Sync for Patchwhere
RawVecInner: Sync,
u8: Sync,
Arc<str>: Sync,
ScalarValue: Sync,
NodeRef<Owned, SmolStr, ScalarValue, LeafOrInternal>: Sync,
BoxRaw<(SmolStr, ScalarValue)>: Sync,
impl Unpin for Patch
impl UnsafeUnpin for Patchwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(ExId, Prop)>: UnsafeUnpin,
&'static ScalarValue: UnsafeUnpin,
ScalarValue: UnsafeUnpin,
PhantomData<(Value<'static>, ExId, bool)>: UnsafeUnpin,
PhantomData<SequenceTreeNode<(Value<'static>, ExId, bool)>>: UnsafeUnpin,
PhantomData<SequenceTreeNode<u8>>: UnsafeUnpin,
PhantomData<u16>: UnsafeUnpin,
PhantomData<SequenceTreeNode<u16>>: UnsafeUnpin,
PhantomData<char>: UnsafeUnpin,
PhantomData<SequenceTreeNode<char>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<SequenceTreeNode<String>>: UnsafeUnpin,
*const LeafNode<SmolStr, ScalarValue> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(SmolStr, ScalarValue)>>: UnsafeUnpin,
PhantomData<Mark>: UnsafeUnpin,
impl UnwindSafe for Patchwhere
RawVecInner: UnwindSafe,
u8: UnwindSafe,
&'static ScalarValue: UnwindSafe,
ScalarValue: UnwindSafe,
BTreeMap<SmolStr, ScalarValue>: UnwindSafe,
&'static str: UnwindSafe,
Arc<str>: 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
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