reparent_range

Function reparent_range 

Source
pub fn reparent_range(
    op_store: &dyn OpStore,
    root_ops: &[Operation],
    head_ops: &[Operation],
    dest_op: &Operation,
) -> OpStoreResult<ReparentStats>
Expand description

Reparents the operation range root_ops..head_ops onto the dest_op.

Returns the new head operation ids as well as some stats. If the old operation heads are remapped to the new heads, the operations within the range dest_op..root_ops become unreachable.

If the source operation range root_ops..head_ops was empty, the new_head_ids will be [dest_op.id()], meaning the dest_op is the head.