syntax_bridge

Trait SpanMapper

Source
pub trait SpanMapper<S> {
    // Required method
    fn span_for(&self, range: TextRange) -> S;
}

Required Methods§

Source

fn span_for(&self, range: TextRange) -> S

Implementations on Foreign Types§

Source§

impl<S> SpanMapper<SpanData<S>> for SpanMap<S>
where SpanData<S>: Copy,

Source§

fn span_for(&self, range: TextRange) -> SpanData<S>

Source§

impl<S: Copy, SM: SpanMapper<S>> SpanMapper<S> for &SM

Source§

fn span_for(&self, range: TextRange) -> S

Implementors§

Source§

impl SpanMapper<SpanData<SyntaxContextId>> for DummyTestSpanMap