Lines Matching defs:Span
3 // This code exercises the surface area that we expect of Span's unstable API.
12 use proc_macro::{Literal, Span};
14 pub fn byte_range(this: &Span) -> Range<usize> {
18 pub fn start(this: &Span) -> Span {
22 pub fn end(this: &Span) -> Span {
26 pub fn line(this: &Span) -> usize {
30 pub fn column(this: &Span) -> usize {
34 pub fn join(this: &Span, other: Span) -> Option<Span> {
38 pub fn subspan<R: RangeBounds<usize>>(this: &Literal, range: R) -> Option<Span> {