Skip to main content

path_to

Function path_to 

Source
pub fn path_to(
    trie: &AstPathTrie,
    path: AstPathId,
    f: impl FnMut(&AstParentKind) -> bool,
) -> AstPathId
Expand description

The prefix of path up to (excluding) its innermost element matching f.

Returns the whole path when nothing matches.