rust-matchers: add functions to get roots, dirs and parents from patterns...
rust-matchers: add functions to get roots, dirs and parents from patterns
These functions will be used to help build the upcoming `IncludeMatcher`.
Differential Revision:
https://phab.mercurial-scm.org/D7923