Skip to main content

path_within_subtree

Function path_within_subtree 

Source
pub fn path_within_subtree<'a>(
    path: &Path,
    subtrees: impl Iterator<Item = &'a Path>,
) -> bool
Expand description

Whether path sits under (or exactly equals) any of the given subtree grants. As with insert_subtree, containment is purely lexical, so callers should pass normalized paths.