{"ast_node_type":"function","tokens":[{"end":47,"kind":"keyword","start":0,"text":"fn"}]}
    fn from_path(path: &Path) -> Vec<Segment> {
impl Segment {
        path.segments.iter().map(|s| s.into()).collect()