pub enum Edit {
Change(Node),
Insert {
parent: Option<NodeId>,
after: Option<NodeId>,
node: Node,
},
Remove(NodeId),
Move {
id: NodeId,
parent: NodeId,
after: Option<NodeId>,
},
}Expand description
One operation of a patch, on the engine’s own nodes: what the wire
carries as a proto::Op, and what a scene kept beside a resolve is
brought across by without its nodes passing through the wire’s form.
Variants§
Change(Node)
The node of this id takes these own attributes; its children stay.
Insert
This subtree goes under the node parent, after its child after
or first — or, with no parent, replaces the scene.
Remove(NodeId)
The subtree of this id goes.
Move
The subtree of this id moves under parent, after after or first.
Trait Implementations§
impl StructuralPartialEq for Edit
Auto Trait Implementations§
impl Freeze for Edit
impl RefUnwindSafe for Edit
impl Send for Edit
impl Sync for Edit
impl Unpin for Edit
impl UnsafeUnpin for Edit
impl UnwindSafe for Edit
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