pub enum SurfacePatchOp {
Insert {
dest: SurfaceRankedDest,
fragment: SurfaceFragment,
span: Span,
},
Put {
slot: SurfaceSlotRef,
fragment: SurfaceFragment,
span: Span,
},
Replace {
target: SurfaceNodeRef,
fragment: SurfaceFragment,
span: Span,
},
Delete {
target: SurfaceNodeRef,
span: Span,
},
Move {
target: SurfaceNodeRef,
dest: SurfaceDest,
span: Span,
},
Set {
path: SurfacePath,
value: SurfaceValue,
span: Span,
},
Clear {
path: SurfacePath,
span: Span,
},
Attach {
node: SurfaceNodeRef,
target: SurfaceNodeRef,
span: Span,
},
Detach {
node: SurfaceNodeRef,
span: Span,
},
}Expand description
Unresolved textual patch op parsed from the canonical patch surface.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SurfacePatchOp
impl Clone for SurfacePatchOp
Source§fn clone(&self) -> SurfacePatchOp
fn clone(&self) -> SurfacePatchOp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SurfacePatchOp
impl Debug for SurfacePatchOp
Source§impl PartialEq for SurfacePatchOp
impl PartialEq for SurfacePatchOp
Source§fn eq(&self, other: &SurfacePatchOp) -> bool
fn eq(&self, other: &SurfacePatchOp) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SurfacePatchOp
impl StructuralPartialEq for SurfacePatchOp
Auto Trait Implementations§
impl Freeze for SurfacePatchOp
impl RefUnwindSafe for SurfacePatchOp
impl Send for SurfacePatchOp
impl Sync for SurfacePatchOp
impl Unpin for SurfacePatchOp
impl UnsafeUnpin for SurfacePatchOp
impl UnwindSafe for SurfacePatchOp
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