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