fn rewrite_segment(
    path_context: PathContext,
    segment: &PathSegment,
    span_lo: &mut BytePos,
    span_hi: BytePos,
    context: &RewriteContext<'_>,
    shape: Shape
) -> Option<String>