Trait synthez::spanned::IntoSpan

source ·
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§

impl<T> IntoSpan for &Twhere T: Spanned,

Implementors§

source§

impl<T> IntoSpan for &Spanning<T>