isPrefixOf
Returns whether this path identifies an ancestor (or the same location as) other.
This is an advanced structural operation for libraries that track relationships between paths, such as selective invalidation or dependency registries. It compares the root type and ordered path segments, but not the focused value type: an ancestor and descendant naturally focus different types.