Trait bitsy_lang::HasSpan

source ·
pub trait HasSpan {
    // Required method
    fn span(&self) -> Span;
}
Expand description

Many objects have location information. HasSpan allows you to call [HasLoc::loc] to get the span information.

Required Methods§

source

fn span(&self) -> Span

Implementations on Foreign Types§

source§

impl HasSpan for Arc<Expr>

source§

fn span(&self) -> Span

Implementors§