Trait IntoSpan
Other items insynthez::spanned
pub trait IntoSpan: Sealed { fn into_span(self) -> Span; }
Helper coercion for Span and Spanned types to use in function arguments.
Span
Spanned
fn into_span(self) -> Span
Returns the coerced Span.
impl IntoSpan for Span
pub fn into_span(self) -> Span
impl<'_, T> IntoSpan for &'_ T where T: Spanned,