pub fn fold_path_segment<F>(f: &mut F, node: PathSegment) -> PathSegmentwhere
    F: Fold + ?Sized,