Skip to main content

IntoSpan

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".

Implementations on Foreign Types§

Source§

impl IntoSpan for Range<BytePos>

Source§

impl IntoSpan for Span

Source§

impl IntoSpan for SpanData

Implementors§