pub trait IntoSpan: Sealed {
    // Required method
    fn into_span(self) -> Span;
}
Expand description

Helper coercion for Span and Spanned types to use in function arguments.

Required Methods§

source

fn into_span(self) -> Span

Returns the coerced Span.

Implementations on Foreign Types§

source§

impl IntoSpan for Span

source§

fn into_span(self) -> Self

source§

impl<T: Spanned> IntoSpan for &T

Implementors§

source§

impl<T> IntoSpan for &Spanning<T>