pub fn segments(path: &str) -> Vec<(&str, &str)>Expand description
Walk path, yielding (cumulative_path, segment_name) for each segment in
order. The cumulative path preserves the original separators, so it matches
node paths constructed with member_child/decompose_child and can be
used directly as a projection node key.
Empty segments (from leading/trailing/doubled separators) are skipped.