description: Reroot to a new path, maintaining a input proto index.
View source on GitHub
|
Reroot to a new path, maintaining a input proto index.
expression_impl.reroot.reroot(
root: expression.Expression,
source_path: path.Path
) -> expression.Expression
Similar to root.get_descendant_or_error(source_path): however, this method retains the ability to get a map to the original index.
| `root` | the original root. |
| `source_path` | the path to the new root. |
| the new root. |
View source on GitHub