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 step from a scene to the next, naming its nodes by id.
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 Forget for Edit
impl Freeze for Editwhere
*const u8 is !null: Freeze,
PhantomData<u32>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(Color, f32)>: Freeze,
*const LeafNode<OrderKey, Node> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(OrderKey, Node)>>: Freeze,
impl Move for Edit
impl RefUnwindSafe for Edit
impl Send for Edit
impl Sync for Edit
impl Unpin for Edit
impl UnsafeUnpin for Editwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(Color, f32)>: UnsafeUnpin,
*const LeafNode<OrderKey, Node> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(OrderKey, Node)>>: UnsafeUnpin,
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