Trait 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§

fn into_span(self) -> Self

Source§

impl<T: Spanned> IntoSpan for &T

Implementors§

Source§

impl<T> IntoSpan for &Spanning<T>