clippy_utils::source

Trait IntoSpan

Source
pub trait IntoSpan: Sized {
    // Required methods
    fn into_span(self) -> Span;
    fn with_ctxt(self, ctxt: SyntaxContext) -> Span;
}
Expand description

Conversion of a value into a Span

Required Methods§

Source

fn into_span(self) -> Span

Source

fn with_ctxt(self, ctxt: SyntaxContext) -> Span

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IntoSpan for Span

Source§

impl IntoSpan for SpanData

Source§

impl IntoSpan for Range<BytePos>

Implementors§