pub fn stringify_path_with(
segments: &[Segment],
prefer_dot_for_indices: bool,
) -> StringExpand description
Build a dot path from segments. When prefer_dot_for_indices is set, indices after the
first segment are written as .0 rather than [0].