Enum loro_internal::delta::TreeInternalDiff
source · pub enum TreeInternalDiff {
Create,
Restore,
AsRoot,
Move(TreeID),
CreateMove(TreeID),
RestoreMove(TreeID),
Delete,
UnCreate,
}Expand description
The action of TreeDiff. It’s the same as [crate::container::tree::tree_op::TreeOp], but semantic.
Variants§
Create
First create the node, have not seen it before
Restore
Recreate the node, the node has been deleted before
AsRoot
Same as move to None and the node is exist
Move(TreeID)
Move the node to the parent, the node is exist
CreateMove(TreeID)
First create the node and move it to the parent
RestoreMove(TreeID)
Recreate the node, and move it to the parent
Delete
Delete the node
UnCreate
For retreating, if the node is only created, not move it to DELETED_ROOT but delete it directly
Trait Implementations§
source§impl Clone for TreeInternalDiff
impl Clone for TreeInternalDiff
source§fn clone(&self) -> TreeInternalDiff
fn clone(&self) -> TreeInternalDiff
Returns a copy 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 Debug for TreeInternalDiff
impl Debug for TreeInternalDiff
source§impl Serialize for TreeInternalDiff
impl Serialize for TreeInternalDiff
impl Copy for TreeInternalDiff
Auto Trait Implementations§
impl RefUnwindSafe for TreeInternalDiff
impl Send for TreeInternalDiff
impl Sync for TreeInternalDiff
impl Unpin for TreeInternalDiff
impl UnwindSafe for TreeInternalDiff
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