fn rewrite_path_segments<'a, I>(
    path_context: PathContext,
    buffer: String,
    iter: I,
    span_lo: BytePos,
    span_hi: BytePos,
    context: &RewriteContext<'_>,
    shape: Shape
) -> Option<String>where
    I: Iterator<Item = &'a PathSegment>,