.cargo/vendor/proc-macro2/src/probe/proc_macro_span_location.rs
raw| 1 | // The subset of Span's API stabilized in Rust 1.88. |
| 2 | |
| 3 | extern crate proc_macro; |
| 4 | |
| 5 | use proc_macro::Span; |
| 6 | |
| 7 | pub fn start(this: &Span) -> Span { |
| 8 | this.start() |
| 9 | } |
| 10 | |
| 11 | pub fn end(this: &Span) -> Span { |
| 12 | this.end() |
| 13 | } |
| 14 | |
| 15 | pub fn line(this: &Span) -> usize { |
| 16 | this.line() |
| 17 | } |
| 18 | |
| 19 | pub fn column(this: &Span) -> usize { |
| 20 | this.column() |
| 21 | } |