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

Object Safety§

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§