Skip to main content

locate

Function locate 

Source
fn locate(key: &SettingsKey) -> Option<(Vec<Step>, String)>
Expand description

Where a leaf sits: the steps to its parent and the leaf’s own key.

The row’s own instance names are tried first, then the path’s own split. group holds the names the row was built from, but split_row cannot tell a name from a key segment: projects api and api.handoff both match the row orgs.Acme.projects.api.handoff.enabled, and its longest-name rule picks the sibling. So a group split is used only when it reassembles the row’s path exactly, and the fallback reads the path against the pattern’s literal segments.