| 97 | /// ``` |
| 98 | #[derive(Clone, Debug, PartialEq, Eq, Hash)] |
| 99 | pub struct Path<'heap> { |
| 100 | pub id: NodeId, |
| 101 | pub span: SpanId, |
| 102 | |
| 103 | /// Whether the path is rooted (starts with a double colon `::`). |
| 104 | pub rooted: bool, |
| 105 | pub segments: heap::Vec<'heap, PathSegment<'heap>>, |
| 106 | } |
| 107 | |
| 108 | impl<'heap> Path<'heap> { |
| 109 | const fn is_generic_ident(&self) -> bool { |
no outgoing calls
no test coverage detected