pub fn path_to_as_path(path: Vec<PathSeg>) -> AsPath