(&self)
| 31 | impl PathSegmentArgument<'_> { |
| 32 | #[must_use] |
| 33 | pub const fn span(&self) -> SpanId { |
| 34 | match self { |
| 35 | PathSegmentArgument::Argument(argument) => argument.span, |
| 36 | PathSegmentArgument::Constraint(constraint) => constraint.span, |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | /// A segment in a path expression. |
no outgoing calls
no test coverage detected