Skip to main content

SourceSpanned

Trait SourceSpanned 

Source
pub trait SourceSpanned<'db> {
    // Required method
    fn source_span(&self, db: &'db dyn Db) -> Span<'db>;
}
Expand description

Returns the span of this item in the source.

This is distinct from the Spanned impl, which returns the span best used in error reporting.

Required Methods§

Source

fn source_span(&self, db: &'db dyn Db) -> Span<'db>

Implementors§