pub fn path_shape_for(segments: &[String], hints: bool) -> String
Convenience matching Ruby’s PathShape.for.